Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Commit 45c90db

Browse files
committed
Add untrusted and more crate
Signed-off-by: Quanyi Ma <eli@patch.sh>
1 parent c2f2c14 commit 45c90db

File tree

199 files changed

+14484
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+14484
-0
lines changed

BUCK

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,24 @@ cargo.rust_binary(
66
srcs = glob(["src/**/*.rs"]),
77
crate_root = "src/main.rs",
88
deps = [
9+
# autocfg
10+
"//third-party/rust/crates/autocfg/1.4.0:autocfg",
11+
12+
# equivalent
13+
"//third-party/rust/crates/equivalent/1.0.2:equivalent",
14+
15+
# fny
16+
"//third-party/rust/crates/fnv/1.0.7:fnv",
17+
918
# rustc-std-workspace-core
1019
"//third-party/rust/crates/rustc-std-workspace-core/1.0.1:rustc-std-workspace-core",
1120

1221
# lexopt
1322
"//third-party/rust/crates/lexopt/0.3.0:lexopt",
1423

24+
# opaque-debug
25+
"//third-party/rust/crates/opaque-debug/0.3.1:opaque-debug",
26+
1527
# anstyle
1628
# Example: `buck2 run //third-party/rust/crates/anstyle/1.0.10:dump-style`
1729
"//third-party/rust/crates/anstyle/1.0.10:anstyle",
@@ -29,10 +41,40 @@ cargo.rust_binary(
2941
"//third-party/rust/crates/cfg-if/1.0.0:cfg-if",
3042
# ---
3143

44+
# time-core
45+
"//third-party/rust/crates/time-core/0.1.4:time-core",
46+
3247
# libc
3348
"//third-party/rust/crates/libc/0.2.169:libc",
3449
# ---
3550

51+
# tinyvec_macros
52+
"//third-party/rust/crates/tinyvec_macros/0.1.1:tinyvec_macros",
53+
54+
# try-lock
55+
"//third-party/rust/crates/try-lock/0.2.5:try-lock",
56+
57+
# untrusted
58+
"//third-party/rust/crates/untrusted/0.9.0:untrusted",
59+
60+
# utf8parse
61+
"//third-party/rust/crates/utf8parse/0.2.2:utf8parse",
62+
63+
# openssl-probe
64+
"//third-party/rust/crates/openssl-probe/0.1.6:openssl-probe",
65+
66+
# pin-utils
67+
"//third-party/rust/crates/pin-utils/0.1.0:pin-utils",
68+
69+
# quick-error
70+
"//third-party/rust/crates/quick-error/2.0.1:quick-error",
71+
72+
# scopeguard
73+
"//third-party/rust/crates/scopeguard/1.2.0:scopeguard",
74+
75+
# static_assertions
76+
"//third-party/rust/crates/static_assertions/1.1.0:static_assertions",
77+
3678
# syn
3779
# "//third-party/rust/crates/syn/2.0.81",
3880
# ---
@@ -51,6 +93,7 @@ cargo.rust_binary(
5193

5294
# foreign-types-shared/
5395
"//third-party/rust/crates/foreign-types-shared/0.1.1:foreign-types-shared",
96+
"//third-party/rust/crates/foreign-types-shared/0.3.1:foreign-types-shared",
5497
# ---
5598

5699
# once_cell
@@ -95,6 +138,9 @@ cargo.rust_binary(
95138
"//third-party/rust/crates/shlex/1.3.0:shlex",
96139
"//third-party/rust/crates/shlex/1.3.0:shlex-no-std",
97140
# ---
141+
142+
# version_check
143+
"//third-party/rust/crates/version_check/0.9.5:version_check",
98144
],
99145
visibility = ["PUBLIC"],
100146
)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "d07df6624a4573803a29397c0ccf636aa0b3d153"
4+
},
5+
"path_in_vcs": ""
6+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
/target
3+
**/*.rs.bk
4+
Cargo.lock
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
load("@prelude//toolchains:rust.bzl", "system_rust_toolchain")
2+
3+
rust_library(
4+
name = "autocfg",
5+
crate = "autocfg", # Explicitly set crate name
6+
edition = "2015",
7+
srcs = glob(["src/**/*.rs"]),
8+
crate_root = "src/lib.rs",
9+
features = [],
10+
rustc_flags = [],
11+
env = {},
12+
deps = [],
13+
visibility = ["PUBLIC"],
14+
)
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2+
#
3+
# When uploading crates to the registry Cargo will automatically
4+
# "normalize" Cargo.toml files for maximal compatibility
5+
# with all versions of Cargo and also rewrite `path` dependencies
6+
# to registry (e.g., crates.io) dependencies.
7+
#
8+
# If you are reading this file be aware that the original Cargo.toml
9+
# will likely look very different (and much more reasonable).
10+
# See Cargo.toml.orig for the original contents.
11+
12+
[package]
13+
rust-version = "1.0"
14+
name = "autocfg"
15+
version = "1.4.0"
16+
authors = ["Josh Stone <cuviper@gmail.com>"]
17+
build = false
18+
exclude = ["/.github/**"]
19+
autobins = false
20+
autoexamples = false
21+
autotests = false
22+
autobenches = false
23+
description = "Automatic cfg for Rust compiler features"
24+
documentation = "https://docs.rs/autocfg/"
25+
readme = "README.md"
26+
keywords = [
27+
"rustc",
28+
"build",
29+
"autoconf",
30+
]
31+
categories = ["development-tools::build-utils"]
32+
license = "Apache-2.0 OR MIT"
33+
repository = "https://github.com/cuviper/autocfg"
34+
35+
[lib]
36+
name = "autocfg"
37+
path = "src/lib.rs"
38+
39+
[[example]]
40+
name = "integers"
41+
path = "examples/integers.rs"
42+
43+
[[example]]
44+
name = "nightly"
45+
path = "examples/nightly.rs"
46+
47+
[[example]]
48+
name = "paths"
49+
path = "examples/paths.rs"
50+
51+
[[example]]
52+
name = "traits"
53+
path = "examples/traits.rs"
54+
55+
[[example]]
56+
name = "versions"
57+
path = "examples/versions.rs"
58+
59+
[[test]]
60+
name = "no_std"
61+
path = "tests/no_std.rs"
62+
63+
[[test]]
64+
name = "rustflags"
65+
path = "tests/rustflags.rs"
66+
67+
[[test]]
68+
name = "tests"
69+
path = "tests/tests.rs"
70+
71+
[[test]]
72+
name = "wrappers"
73+
path = "tests/wrappers.rs"
74+
75+
[dependencies]

third-party/rust/crates/autocfg/1.4.0/Cargo.toml.orig

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)