diff --git a/crate_universe/Cargo.lock b/crate_universe/Cargo.lock index 48e42c43ad..0da31251e6 100644 --- a/crate_universe/Cargo.lock +++ b/crate_universe/Cargo.lock @@ -166,7 +166,7 @@ dependencies = [ "tempfile", "tera", "textwrap", - "toml", + "toml 0.8.2", "tracing", "tracing-subscriber", ] @@ -179,7 +179,7 @@ checksum = "e11c675378efb449ed3ce8de78d75d0d80542fc98487c26aba28eb3b82feac72" dependencies = [ "semver", "serde", - "toml", + "toml 0.7.6", "url", ] @@ -208,12 +208,12 @@ dependencies = [ [[package]] name = "cargo_toml" -version = "0.15.3" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "599aa35200ffff8f04c1925aa1acc92fa2e08874379ef42e210a80e527e60838" +checksum = "6ca592ad99e6a0fd4b95153406138b997cc26ccd3cd0aecdfd4fbdbf1519bd77" dependencies = [ "serde", - "toml", + "toml 0.8.2", ] [[package]] @@ -352,7 +352,7 @@ dependencies = [ "serde_derive", "serde_json", "smol_str", - "toml", + "toml 0.7.6", ] [[package]] @@ -1406,7 +1406,19 @@ dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit", + "toml_edit 0.19.13", +] + +[[package]] +name = "toml" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit 0.20.2", ] [[package]] @@ -1431,6 +1443,19 @@ dependencies = [ "winnow", ] +[[package]] +name = "toml_edit" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338" +dependencies = [ + "indexmap", + "serde", + "serde_spanned", + "toml_datetime", + "winnow", +] + [[package]] name = "tracing" version = "0.1.40" diff --git a/crate_universe/Cargo.toml b/crate_universe/Cargo.toml index 3338444cbf..c2b4eb4605 100644 --- a/crate_universe/Cargo.toml +++ b/crate_universe/Cargo.toml @@ -27,7 +27,7 @@ default = ["cargo"] [dependencies] anyhow = "1.0.71" cargo_metadata = "0.15.4" -cargo_toml = "0.15.2" +cargo_toml = "0.17.0" cargo-lock = "9.0.0" cargo-platform = "0.1.2" cfg-expr = "0.15.0" @@ -47,7 +47,7 @@ sha2 = "0.10.7" tempfile = "3.6.0" tera = "1.19.0" textwrap = "0.16.0" -toml = "0.7.6" +toml = "0.8.0" tracing = "0.1.40" tracing-subscriber = "0.3.17" diff --git a/crate_universe/src/metadata.rs b/crate_universe/src/metadata.rs index c5bb2a0bf3..233ce59359 100644 --- a/crate_universe/src/metadata.rs +++ b/crate_universe/src/metadata.rs @@ -75,12 +75,17 @@ impl MetadataGenerator for Generator { cargo_lock::Lockfile::load(lock_path)? }; + let mut other_options = vec!["--locked".to_owned()]; + if self.cargo_bin.is_nightly()? { + other_options.push("-Zbindeps".to_owned()); + } + let metadata = self .cargo_bin .metadata_command()? .current_dir(manifest_dir) .manifest_path(manifest_path.as_ref()) - .other_options(["--locked".to_owned()]) + .other_options(other_options) .exec()?; Ok((metadata, lockfile)) @@ -108,6 +113,9 @@ impl Cargo { pub fn command(&self) -> Result { let mut command = Command::new(&self.path); command.envs(self.env()?); + if self.is_nightly()? { + command.arg("-Zbindeps"); + } Ok(command) } @@ -132,6 +140,16 @@ impl Cargo { Ok(full_version.clone().unwrap()) } + pub fn is_nightly(&self) -> Result { + let full_version = self.full_version()?; + let version_str = full_version.split(' ').nth(1); + if let Some(version_str) = version_str { + let version = Version::parse(version_str).context("Failed to parse cargo version")?; + return Ok(version.pre.as_str() == "nightly"); + } + bail!("Couldn't parse cargo version"); + } + pub fn use_sparse_registries_for_crates_io(&self) -> Result { let full_version = self.full_version()?; let version_str = full_version.split(' ').nth(1); diff --git a/examples/crate_universe/WORKSPACE.bazel b/examples/crate_universe/WORKSPACE.bazel index 057dc4d671..b96d6a3525 100644 --- a/examples/crate_universe/WORKSPACE.bazel +++ b/examples/crate_universe/WORKSPACE.bazel @@ -46,6 +46,28 @@ load( cargo_aliases_crate_repositories() +############################################################################### +# C A R G O B I N D E P S +############################################################################### + +crates_repository( + name = "crate_index_cargo_bindeps", + cargo_lockfile = "//cargo_bindeps:Cargo.lock", + generate_binaries = True, + # `generator` is not necessary in official releases. + # See load satement for `cargo_bazel_bootstrap`. + generator = "@cargo_bazel_bootstrap//:cargo-bazel", + manifests = ["//cargo_bindeps:Cargo.toml"], + rust_version = "nightly", +) + +load( + "@crate_index_cargo_bindeps//:defs.bzl", + cargo_bindeps_crate_repositories = "crate_repositories", +) + +cargo_bindeps_crate_repositories() + ############################################################################### # C A R G O L O C A L ############################################################################### diff --git a/examples/crate_universe/cargo_aliases/cargo-bazel-lock.json b/examples/crate_universe/cargo_aliases/cargo-bazel-lock.json index 8c247655c0..baaeb8ad84 100644 --- a/examples/crate_universe/cargo_aliases/cargo-bazel-lock.json +++ b/examples/crate_universe/cargo_aliases/cargo-bazel-lock.json @@ -1,5 +1,5 @@ { - "checksum": "52f60c61e76b1cb7a9142f4c92751bcf190f7836c4ef50560439c0a322d44dc6", + "checksum": "26c3b23c3f5e12a7a8d0cf57a4170096ec8144c9bdb889cbd08dafa2c0361d23", "crates": { "aho-corasick 0.7.20": { "name": "aho-corasick", diff --git a/examples/crate_universe/cargo_bindeps/BUILD.bazel b/examples/crate_universe/cargo_bindeps/BUILD.bazel new file mode 100644 index 0000000000..b9dbca0c86 --- /dev/null +++ b/examples/crate_universe/cargo_bindeps/BUILD.bazel @@ -0,0 +1,23 @@ +load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test") + +alias( + name = "hyperfine", + actual = "@crate_index_cargo_bindeps//:hyperfine__hyperfine", + tags = ["manual"], +) + +rust_library( + name = "bindeps", + srcs = glob(["**/*.rs"]), + data = [":hyperfine"], + edition = "2018", + rustc_env = { + "HYPERFINE": "$(rootpath :hyperfine)", + }, +) + +rust_test( + name = "unit_test", + crate = ":bindeps", + edition = "2018", +) diff --git a/examples/crate_universe/cargo_bindeps/Cargo.lock b/examples/crate_universe/cargo_bindeps/Cargo.lock new file mode 100644 index 0000000000..0ae67f0b1a --- /dev/null +++ b/examples/crate_universe/cargo_bindeps/Cargo.lock @@ -0,0 +1,1244 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "ahash" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +dependencies = [ + "getrandom", + "once_cell", + "version_check", +] + +[[package]] +name = "ahash" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" +dependencies = [ + "cfg-if", + "once_cell", + "version_check", +] + +[[package]] +name = "anstream" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6cd65a4b849ace0b7f6daeebcc1a1d111282227ca745458c61dbf670e52a597" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87" + +[[package]] +name = "anstyle-parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "317b9a89c1868f5ea6ff1d9539a69f45dffc21ce321ac1fd1160dfa48c8e2140" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b" +dependencies = [ + "windows-sys 0.48.0", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0238ca56c96dfa37bdf7c373c8886dd591322500aceeeccdb2216fe06dc2f796" +dependencies = [ + "anstyle", + "windows-sys 0.48.0", +] + +[[package]] +name = "anyhow" +version = "1.0.75" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" + +[[package]] +name = "arrayvec" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" + +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi 0.1.19", + "libc", + "winapi", +] + +[[package]] +name = "autocfg" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dde43e75fd43e8a1bf86103336bc699aa8d17ad1be60c76c0bdfd4828e19b78" +dependencies = [ + "autocfg 1.1.0", +] + +[[package]] +name = "autocfg" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635" + +[[package]] +name = "bitvec" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" +dependencies = [ + "funty", + "radium", + "tap", + "wyz", +] + +[[package]] +name = "borsh" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4114279215a005bc675e386011e594e1d9b800918cea18fcadadcce864a2046b" +dependencies = [ + "borsh-derive", + "hashbrown 0.13.2", +] + +[[package]] +name = "borsh-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0754613691538d51f329cce9af41d7b7ca150bc973056f1156611489475f54f7" +dependencies = [ + "borsh-derive-internal", + "borsh-schema-derive-internal", + "proc-macro-crate", + "proc-macro2", + "syn 1.0.109", +] + +[[package]] +name = "borsh-derive-internal" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "afb438156919598d2c7bad7e1c0adf3d26ed3840dbc010db1a882a65583ca2fb" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "borsh-schema-derive-internal" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "634205cc43f74a1b9046ef87c4540ebda95696ec0f315024860cad7c5b0f5ccd" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "bytecheck" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b6372023ac861f6e6dc89c8344a8f398fb42aaba2b5dbc649ca0c0e9dbcb627" +dependencies = [ + "bytecheck_derive", + "ptr_meta", + "simdutf8", +] + +[[package]] +name = "bytecheck_derive" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7ec4c6f261935ad534c0c22dbef2201b45918860eb1c574b972bd213a76af61" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "bytes" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" + +[[package]] +name = "cargo_bindeps" +version = "0.1.0" +dependencies = [ + "hyperfine", +] + +[[package]] +name = "cc" +version = "1.0.83" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" +dependencies = [ + "libc", +] + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "clap" +version = "4.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d04704f56c2cde07f43e8e2c154b43f216dc5c92fc98ada720177362f953b956" +dependencies = [ + "clap_builder", +] + +[[package]] +name = "clap_builder" +version = "4.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e231faeaca65ebd1ea3c737966bf858971cd38c3849107aa3ea7de90a804e45" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", + "terminal_size", +] + +[[package]] +name = "clap_complete" +version = "4.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ae8ba90b9d8b007efe66e55e48fb936272f5ca00349b5b0e89877520d35ea7" +dependencies = [ + "clap", +] + +[[package]] +name = "clap_lex" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd7cc57abe963c6d3b9d8be5b06ba7c8957a930305ca90304f24ef040aa6f961" + +[[package]] +name = "cloudabi" +version = "0.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" +dependencies = [ + "bitflags 1.3.2", +] + +[[package]] +name = "colorchoice" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" + +[[package]] +name = "colored" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2674ec482fbc38012cf31e6c42ba0177b431a0cb6f15fe40efa5aab1bda516f6" +dependencies = [ + "is-terminal", + "lazy_static", + "windows-sys 0.48.0", +] + +[[package]] +name = "console" +version = "0.15.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c926e00cc70edefdc64d3a5ff31cc65bb97a3460097762bd23afb4d8145fccf8" +dependencies = [ + "encode_unicode", + "lazy_static", + "libc", + "unicode-width", + "windows-sys 0.45.0", +] + +[[package]] +name = "csv" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "626ae34994d3d8d668f4269922248239db4ae42d538b14c398b74a52208e8086" +dependencies = [ + "csv-core", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "csv-core" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b2466559f260f48ad25fe6317b3c8dac77b5bdb5763ac7d9d6103530663bc90" +dependencies = [ + "memchr", +] + +[[package]] +name = "encode_unicode" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" + +[[package]] +name = "errno" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "136526188508e25c6fef639d7927dfb3e0e3084488bf202267829cf7fc23dbdd" +dependencies = [ + "errno-dragonfly", + "libc", + "windows-sys 0.48.0", +] + +[[package]] +name = "errno-dragonfly" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" +dependencies = [ + "cc", + "libc", +] + +[[package]] +name = "fuchsia-cprng" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" + +[[package]] +name = "funty" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" + +[[package]] +name = "getrandom" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +dependencies = [ + "ahash 0.7.6", +] + +[[package]] +name = "hashbrown" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" +dependencies = [ + "ahash 0.8.3", +] + +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "hermit-abi" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" + +[[package]] +name = "hyperfine" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2545ef0128964c44f3015520d897983aa01a3a9880d8bb7c62b056617b7c13" +dependencies = [ + "anyhow", + "atty", + "clap", + "clap_complete", + "colored", + "csv", + "indicatif", + "libc", + "nix", + "once_cell", + "rand 0.8.5", + "rust_decimal", + "serde", + "serde_json", + "shell-words", + "statistical", + "thiserror", + "windows-sys 0.48.0", +] + +[[package]] +name = "indicatif" +version = "0.17.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb28741c9db9a713d93deb3bb9515c20788cef5815265bee4980e87bde7e0f25" +dependencies = [ + "console", + "instant", + "number_prefix", + "portable-atomic", + "unicode-width", +] + +[[package]] +name = "instant" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "is-terminal" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" +dependencies = [ + "hermit-abi 0.3.3", + "rustix", + "windows-sys 0.48.0", +] + +[[package]] +name = "itoa" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" + +[[package]] +name = "lazy_static" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" + +[[package]] +name = "libc" +version = "0.2.148" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b" + +[[package]] +name = "linux-raw-sys" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a9bad9f94746442c783ca431b22403b519cd7fbeed0533fdd6328b2f2212128" + +[[package]] +name = "memchr" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f232d6ef707e1956a43342693d2a31e72989554d58299d7a88738cc95b0d35c" + +[[package]] +name = "memoffset" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" +dependencies = [ + "autocfg 1.1.0", +] + +[[package]] +name = "nix" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" +dependencies = [ + "bitflags 1.3.2", + "cfg-if", + "libc", + "memoffset", + "pin-utils", +] + +[[package]] +name = "num" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8536030f9fea7127f841b45bb6243b27255787fb4eb83958aa1ef9d2fdc0c36" +dependencies = [ + "num-bigint", + "num-complex", + "num-integer", + "num-iter", + "num-rational", + "num-traits", +] + +[[package]] +name = "num-bigint" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304" +dependencies = [ + "autocfg 1.1.0", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-complex" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6b19411a9719e753aff12e5187b74d60d3dc449ec3f4dc21e3989c3f554bc95" +dependencies = [ + "autocfg 1.1.0", + "num-traits", +] + +[[package]] +name = "num-integer" +version = "0.1.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" +dependencies = [ + "autocfg 1.1.0", + "num-traits", +] + +[[package]] +name = "num-iter" +version = "0.1.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252" +dependencies = [ + "autocfg 1.1.0", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aef" +dependencies = [ + "autocfg 1.1.0", + "num-bigint", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" +dependencies = [ + "autocfg 1.1.0", +] + +[[package]] +name = "number_prefix" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" + +[[package]] +name = "once_cell" +version = "1.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "portable-atomic" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31114a898e107c51bb1609ffaf55a0e011cf6a4d7f1170d0015a165082c0338b" + +[[package]] +name = "ppv-lite86" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" + +[[package]] +name = "proc-macro-crate" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" +dependencies = [ + "toml", +] + +[[package]] +name = "proc-macro2" +version = "1.0.67" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d433d9f1a3e8c1263d9456598b16fec66f4acc9a74dacffd35c7bb09b3a1328" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "ptr_meta" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0738ccf7ea06b608c10564b31debd4f5bc5e197fc8bfe088f68ae5ce81e7a4f1" +dependencies = [ + "ptr_meta_derive", +] + +[[package]] +name = "ptr_meta_derive" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "quote" +version = "1.0.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "radium" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" + +[[package]] +name = "rand" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca" +dependencies = [ + "autocfg 0.1.8", + "libc", + "rand_chacha 0.1.1", + "rand_core 0.4.2", + "rand_hc", + "rand_isaac", + "rand_jitter", + "rand_os", + "rand_pcg", + "rand_xorshift", + "winapi", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef" +dependencies = [ + "autocfg 0.1.8", + "rand_core 0.3.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_core" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b" +dependencies = [ + "rand_core 0.4.2", +] + +[[package]] +name = "rand_core" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc" + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom", +] + +[[package]] +name = "rand_hc" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4" +dependencies = [ + "rand_core 0.3.1", +] + +[[package]] +name = "rand_isaac" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08" +dependencies = [ + "rand_core 0.3.1", +] + +[[package]] +name = "rand_jitter" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b" +dependencies = [ + "libc", + "rand_core 0.4.2", + "winapi", +] + +[[package]] +name = "rand_os" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071" +dependencies = [ + "cloudabi", + "fuchsia-cprng", + "libc", + "rand_core 0.4.2", + "rdrand", + "winapi", +] + +[[package]] +name = "rand_pcg" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44" +dependencies = [ + "autocfg 0.1.8", + "rand_core 0.4.2", +] + +[[package]] +name = "rand_xorshift" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c" +dependencies = [ + "rand_core 0.3.1", +] + +[[package]] +name = "rdrand" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2" +dependencies = [ + "rand_core 0.3.1", +] + +[[package]] +name = "rend" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2571463863a6bd50c32f94402933f03457a3fbaf697a707c5be741e459f08fd" +dependencies = [ + "bytecheck", +] + +[[package]] +name = "rkyv" +version = "0.7.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0200c8230b013893c0b2d6213d6ec64ed2b9be2e0e016682b7224ff82cff5c58" +dependencies = [ + "bitvec", + "bytecheck", + "hashbrown 0.12.3", + "ptr_meta", + "rend", + "rkyv_derive", + "seahash", + "tinyvec", + "uuid", +] + +[[package]] +name = "rkyv_derive" +version = "0.7.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2e06b915b5c230a17d7a736d1e2e63ee753c256a8614ef3f5147b13a4f5541d" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "rust_decimal" +version = "1.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4c4216490d5a413bc6d10fa4742bd7d4955941d062c0ef873141d6b0e7b30fd" +dependencies = [ + "arrayvec", + "borsh", + "bytes", + "num-traits", + "rand 0.8.5", + "rkyv", + "serde", + "serde_json", +] + +[[package]] +name = "rustix" +version = "0.38.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "747c788e9ce8e92b12cd485c49ddf90723550b654b32508f979b71a7b1ecda4f" +dependencies = [ + "bitflags 2.4.0", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.48.0", +] + +[[package]] +name = "ryu" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" + +[[package]] +name = "seahash" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" + +[[package]] +name = "serde" +version = "1.0.188" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf9e0fcba69a370eed61bcf2b728575f726b50b55cba78064753d708ddc7549e" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.188" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4eca7ac642d82aa35b60049a6eccb4be6be75e599bd2e9adb5f875a737654af2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.37", +] + +[[package]] +name = "serde_json" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" +dependencies = [ + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "shell-words" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde" + +[[package]] +name = "simdutf8" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f27f6278552951f1f2b8cf9da965d10969b2efdea95a6ec47987ab46edfe263a" + +[[package]] +name = "statistical" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49d57902bb128e5e38b5218d3681215ae3e322d99f65d5420e9849730d2ea372" +dependencies = [ + "num", + "rand 0.6.5", +] + +[[package]] +name = "strsim" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7303ef2c05cd654186cb250d29049a24840ca25d2747c25c0381c8d9e2f582e8" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "tap" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" + +[[package]] +name = "terminal_size" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" +dependencies = [ + "rustix", + "windows-sys 0.48.0", +] + +[[package]] +name = "thiserror" +version = "1.0.49" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1177e8c6d7ede7afde3585fd2513e611227efd6481bd78d2e82ba1ce16557ed4" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.49" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10712f02019e9288794769fba95cd6847df9874d49d871d062172f9dd41bc4cc" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.37", +] + +[[package]] +name = "tinyvec" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "toml" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" +dependencies = [ + "serde", +] + +[[package]] +name = "unicode-ident" +version = "1.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" + +[[package]] +name = "unicode-width" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" + +[[package]] +name = "utf8parse" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" + +[[package]] +name = "uuid" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d" + +[[package]] +name = "version_check" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "wyz" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" +dependencies = [ + "tap", +] diff --git a/examples/crate_universe/cargo_bindeps/Cargo.toml b/examples/crate_universe/cargo_bindeps/Cargo.toml new file mode 100644 index 0000000000..127d4f190a --- /dev/null +++ b/examples/crate_universe/cargo_bindeps/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "cargo_bindeps" +version = "0.1.0" +authors = ["UebelAndre "] +edition = "2018" + +[lib] +path = "fake.rs" + +[dependencies] +hyperfine = { version = "1.16.1", artifact = "bin" } diff --git a/examples/crate_universe/cargo_bindeps/src/lib.rs b/examples/crate_universe/cargo_bindeps/src/lib.rs new file mode 100644 index 0000000000..bcc1322a45 --- /dev/null +++ b/examples/crate_universe/cargo_bindeps/src/lib.rs @@ -0,0 +1,20 @@ +use std::process::Command; + +pub fn version() -> String { + let output = Command::new(env!("HYPERFINE")) + .arg("--version") + .output() + .expect("failed to execute process"); + + String::from_utf8(output.stdout).expect("invalid UTF-8 found") +} + +#[cfg(test)] +mod test { + use super::*; + + #[test] + fn test_version() { + assert_eq!(version(), "hyperfine 1.17.0\n"); + } +} diff --git a/examples/crate_universe/cargo_conditional_deps/cargo-bazel-lock.json b/examples/crate_universe/cargo_conditional_deps/cargo-bazel-lock.json index 60218d502b..bc37c6711f 100644 --- a/examples/crate_universe/cargo_conditional_deps/cargo-bazel-lock.json +++ b/examples/crate_universe/cargo_conditional_deps/cargo-bazel-lock.json @@ -1,5 +1,5 @@ { - "checksum": "174330374159f2c7ba8e256af2db0e4f274dc2b35e0ee6d660288a34376516ab", + "checksum": "2a2a6e08ae128646808183da2dfa09b6c041681a2ebd3d2d30f4dd8c9f8a72a9", "crates": { "autocfg 1.1.0": { "name": "autocfg", diff --git a/examples/crate_universe/cargo_workspace/cargo-bazel-lock.json b/examples/crate_universe/cargo_workspace/cargo-bazel-lock.json index 689910b921..ea713fad7d 100644 --- a/examples/crate_universe/cargo_workspace/cargo-bazel-lock.json +++ b/examples/crate_universe/cargo_workspace/cargo-bazel-lock.json @@ -1,5 +1,5 @@ { - "checksum": "a9e7b58b5c3f5b3f2712c1dbf4e6b00ef104dda9ee1e8210dac46dd7c50e469a", + "checksum": "419a06b5c486a7e6058c15f3b86f75436b8f843acee78722493548ef16d0929f", "crates": { "ansi_term 0.12.1": { "name": "ansi_term", diff --git a/examples/crate_universe/multi_package/cargo-bazel-lock.json b/examples/crate_universe/multi_package/cargo-bazel-lock.json index 88789e2ef2..76d5b16126 100644 --- a/examples/crate_universe/multi_package/cargo-bazel-lock.json +++ b/examples/crate_universe/multi_package/cargo-bazel-lock.json @@ -1,5 +1,5 @@ { - "checksum": "762f9faabb2c99e97ac5af7e3cbbe30afec964cd85c203589efe0275abca78f8", + "checksum": "6031f97ae62e508313612e60e1ad5c2c18646b1b15226af6126ab39eeae825fa", "crates": { "aho-corasick 0.7.20": { "name": "aho-corasick", @@ -2023,17 +2023,309 @@ "**" ], "crate_features": { - "common": [ - "alloc", - "default", - "fastrand", - "futures-io", - "memchr", - "parking", - "std", - "waker-fn" - ], - "selects": {} + "common": [], + "selects": { + "aarch64-apple-darwin": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "aarch64-apple-ios": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "aarch64-apple-ios-sim": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "aarch64-fuchsia": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "aarch64-linux-android": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "aarch64-pc-windows-msvc": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "aarch64-unknown-linux-gnu": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "arm-unknown-linux-gnueabi": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "armv7-linux-androideabi": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "armv7-unknown-linux-gnueabi": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "i686-apple-darwin": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "i686-linux-android": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "i686-pc-windows-msvc": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "i686-unknown-freebsd": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "i686-unknown-linux-gnu": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "powerpc-unknown-linux-gnu": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "riscv32imc-unknown-none-elf": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "riscv64gc-unknown-none-elf": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "s390x-unknown-linux-gnu": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "thumbv7em-none-eabi": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "thumbv8m.main-none-eabi": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "wasm32-wasi": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "x86_64-apple-darwin": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "x86_64-apple-ios": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "x86_64-fuchsia": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "x86_64-linux-android": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "x86_64-pc-windows-msvc": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "x86_64-unknown-freebsd": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "x86_64-unknown-linux-gnu": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ], + "x86_64-unknown-none": [ + "alloc", + "default", + "fastrand", + "futures-io", + "memchr", + "parking", + "std", + "waker-fn" + ] + } }, "deps": { "common": [ @@ -2969,17 +3261,188 @@ ], "crate_features": { "common": [ - "client", "default", - "h2", "http1", - "http2", - "runtime", "server", "socket2", "tcp" ], - "selects": {} + "selects": { + "aarch64-apple-darwin": [ + "client", + "h2", + "http2", + "runtime" + ], + "aarch64-apple-ios": [ + "client", + "h2", + "http2", + "runtime" + ], + "aarch64-apple-ios-sim": [ + "client", + "h2", + "http2", + "runtime" + ], + "aarch64-fuchsia": [ + "client", + "h2", + "http2", + "runtime" + ], + "aarch64-linux-android": [ + "client", + "h2", + "http2", + "runtime" + ], + "aarch64-pc-windows-msvc": [ + "client", + "h2", + "http2", + "runtime" + ], + "aarch64-unknown-linux-gnu": [ + "client", + "h2", + "http2", + "runtime" + ], + "arm-unknown-linux-gnueabi": [ + "client", + "h2", + "http2", + "runtime" + ], + "armv7-linux-androideabi": [ + "client", + "h2", + "http2", + "runtime" + ], + "armv7-unknown-linux-gnueabi": [ + "client", + "h2", + "http2", + "runtime" + ], + "i686-apple-darwin": [ + "client", + "h2", + "http2", + "runtime" + ], + "i686-linux-android": [ + "client", + "h2", + "http2", + "runtime" + ], + "i686-pc-windows-msvc": [ + "client", + "h2", + "http2", + "runtime" + ], + "i686-unknown-freebsd": [ + "client", + "h2", + "http2", + "runtime" + ], + "i686-unknown-linux-gnu": [ + "client", + "h2", + "http2", + "runtime" + ], + "powerpc-unknown-linux-gnu": [ + "client", + "h2", + "http2", + "runtime" + ], + "riscv32imc-unknown-none-elf": [ + "client", + "h2", + "http2", + "runtime" + ], + "riscv64gc-unknown-none-elf": [ + "client", + "h2", + "http2", + "runtime" + ], + "s390x-unknown-linux-gnu": [ + "client", + "h2", + "http2", + "runtime" + ], + "thumbv7em-none-eabi": [ + "client", + "h2", + "http2", + "runtime" + ], + "thumbv8m.main-none-eabi": [ + "client", + "h2", + "http2", + "runtime" + ], + "x86_64-apple-darwin": [ + "client", + "h2", + "http2", + "runtime" + ], + "x86_64-apple-ios": [ + "client", + "h2", + "http2", + "runtime" + ], + "x86_64-fuchsia": [ + "client", + "h2", + "http2", + "runtime" + ], + "x86_64-linux-android": [ + "client", + "h2", + "http2", + "runtime" + ], + "x86_64-pc-windows-msvc": [ + "client", + "h2", + "http2", + "runtime" + ], + "x86_64-unknown-freebsd": [ + "client", + "h2", + "http2", + "runtime" + ], + "x86_64-unknown-linux-gnu": [ + "client", + "h2", + "http2", + "runtime" + ], + "x86_64-unknown-none": [ + "client", + "h2", + "http2", + "runtime" + ] + } }, "deps": { "common": [ @@ -3188,10 +3651,96 @@ "**" ], "crate_features": { - "common": [ - "std" - ], - "selects": {} + "common": [], + "selects": { + "aarch64-apple-darwin": [ + "std" + ], + "aarch64-apple-ios": [ + "std" + ], + "aarch64-apple-ios-sim": [ + "std" + ], + "aarch64-fuchsia": [ + "std" + ], + "aarch64-linux-android": [ + "std" + ], + "aarch64-pc-windows-msvc": [ + "std" + ], + "aarch64-unknown-linux-gnu": [ + "std" + ], + "arm-unknown-linux-gnueabi": [ + "std" + ], + "armv7-linux-androideabi": [ + "std" + ], + "armv7-unknown-linux-gnueabi": [ + "std" + ], + "i686-apple-darwin": [ + "std" + ], + "i686-linux-android": [ + "std" + ], + "i686-pc-windows-msvc": [ + "std" + ], + "i686-unknown-freebsd": [ + "std" + ], + "i686-unknown-linux-gnu": [ + "std" + ], + "powerpc-unknown-linux-gnu": [ + "std" + ], + "riscv32imc-unknown-none-elf": [ + "std" + ], + "riscv64gc-unknown-none-elf": [ + "std" + ], + "s390x-unknown-linux-gnu": [ + "std" + ], + "thumbv7em-none-eabi": [ + "std" + ], + "thumbv8m.main-none-eabi": [ + "std" + ], + "x86_64-apple-darwin": [ + "std" + ], + "x86_64-apple-ios": [ + "std" + ], + "x86_64-fuchsia": [ + "std" + ], + "x86_64-linux-android": [ + "std" + ], + "x86_64-pc-windows-msvc": [ + "std" + ], + "x86_64-unknown-freebsd": [ + "std" + ], + "x86_64-unknown-linux-gnu": [ + "std" + ], + "x86_64-unknown-none": [ + "std" + ] + } }, "deps": { "common": [ @@ -6656,12 +7205,9 @@ ], "crate_features": { "common": [ - "bytes", "default", - "io-util", "libc", "macros", - "memchr", "mio", "net", "num_cpus", @@ -6672,10 +7218,158 @@ "socket2", "sync", "time", - "tokio-macros", - "windows-sys" + "tokio-macros" ], - "selects": {} + "selects": { + "aarch64-apple-darwin": [ + "bytes", + "io-util", + "memchr" + ], + "aarch64-apple-ios": [ + "bytes", + "io-util", + "memchr" + ], + "aarch64-apple-ios-sim": [ + "bytes", + "io-util", + "memchr" + ], + "aarch64-fuchsia": [ + "bytes", + "io-util", + "memchr" + ], + "aarch64-linux-android": [ + "bytes", + "io-util", + "memchr" + ], + "aarch64-pc-windows-msvc": [ + "bytes", + "io-util", + "memchr", + "windows-sys" + ], + "aarch64-unknown-linux-gnu": [ + "bytes", + "io-util", + "memchr" + ], + "arm-unknown-linux-gnueabi": [ + "bytes", + "io-util", + "memchr" + ], + "armv7-linux-androideabi": [ + "bytes", + "io-util", + "memchr" + ], + "armv7-unknown-linux-gnueabi": [ + "bytes", + "io-util", + "memchr" + ], + "i686-apple-darwin": [ + "bytes", + "io-util", + "memchr" + ], + "i686-linux-android": [ + "bytes", + "io-util", + "memchr" + ], + "i686-pc-windows-msvc": [ + "bytes", + "io-util", + "memchr", + "windows-sys" + ], + "i686-unknown-freebsd": [ + "bytes", + "io-util", + "memchr" + ], + "i686-unknown-linux-gnu": [ + "bytes", + "io-util", + "memchr" + ], + "powerpc-unknown-linux-gnu": [ + "bytes", + "io-util", + "memchr" + ], + "riscv32imc-unknown-none-elf": [ + "bytes", + "io-util", + "memchr" + ], + "riscv64gc-unknown-none-elf": [ + "bytes", + "io-util", + "memchr" + ], + "s390x-unknown-linux-gnu": [ + "bytes", + "io-util", + "memchr" + ], + "thumbv7em-none-eabi": [ + "bytes", + "io-util", + "memchr" + ], + "thumbv8m.main-none-eabi": [ + "bytes", + "io-util", + "memchr" + ], + "x86_64-apple-darwin": [ + "bytes", + "io-util", + "memchr" + ], + "x86_64-apple-ios": [ + "bytes", + "io-util", + "memchr" + ], + "x86_64-fuchsia": [ + "bytes", + "io-util", + "memchr" + ], + "x86_64-linux-android": [ + "bytes", + "io-util", + "memchr" + ], + "x86_64-pc-windows-msvc": [ + "bytes", + "io-util", + "memchr", + "windows-sys" + ], + "x86_64-unknown-freebsd": [ + "bytes", + "io-util", + "memchr" + ], + "x86_64-unknown-linux-gnu": [ + "bytes", + "io-util", + "memchr" + ], + "x86_64-unknown-none": [ + "bytes", + "io-util", + "memchr" + ] + } }, "deps": { "common": [ @@ -8171,13 +8865,10 @@ "common": [ "Blob", "BlobPropertyBag", - "Crypto", - "Event", "EventTarget", "File", "FormData", "Headers", - "MessageEvent", "ReadableStream", "Request", "RequestCredentials", @@ -8186,10 +8877,13 @@ "Response", "ServiceWorkerGlobalScope", "Window", - "Worker", "WorkerGlobalScope" ], - "selects": {} + "selects": { + "wasm32-unknown-unknown": [ + "Crypto" + ] + } }, "deps": { "common": [ @@ -8720,7 +9414,6 @@ "Win32_Networking", "Win32_Networking_WinSock", "Win32_Security", - "Win32_Security_Authorization", "Win32_Storage", "Win32_Storage_FileSystem", "Win32_System", diff --git a/examples/crate_universe/no_cargo_manifests/cargo-bazel-lock.json b/examples/crate_universe/no_cargo_manifests/cargo-bazel-lock.json index 0e9f1adac6..b3dc8f6d2f 100644 --- a/examples/crate_universe/no_cargo_manifests/cargo-bazel-lock.json +++ b/examples/crate_universe/no_cargo_manifests/cargo-bazel-lock.json @@ -1,5 +1,5 @@ { - "checksum": "0c441bac079b4481f5810054a2282693511a0c5582636028298e4cb49cc63695", + "checksum": "b998836bf7970bcc626224faf94a098c3dec52b11bc4c3eff98bd1d96223d209", "crates": { "async-trait 0.1.64": { "name": "async-trait", diff --git a/examples/crate_universe/using_cxx/cargo-bazel-lock.json b/examples/crate_universe/using_cxx/cargo-bazel-lock.json index 79e8f8d3fd..83dfb4ad3c 100644 --- a/examples/crate_universe/using_cxx/cargo-bazel-lock.json +++ b/examples/crate_universe/using_cxx/cargo-bazel-lock.json @@ -1,5 +1,5 @@ { - "checksum": "71b6f19ac904caf96b1b84bdca72bfc5ef2b8696396d04314ebb4be13c98f62a", + "checksum": "71f166de405c74377a40b5f7d9494231e9a6137c44cf3f97bc6369c753ff00dc", "crates": { "cc 1.0.82": { "name": "cc", diff --git a/examples/crate_universe/using_cxx/cxxbridge-cmd.Cargo.Bazel.lock b/examples/crate_universe/using_cxx/cxxbridge-cmd.Cargo.Bazel.lock index e6bcbaa5e6..b534cc54a0 100644 --- a/examples/crate_universe/using_cxx/cxxbridge-cmd.Cargo.Bazel.lock +++ b/examples/crate_universe/using_cxx/cxxbridge-cmd.Cargo.Bazel.lock @@ -1,5 +1,5 @@ { - "checksum": "2ac40591dc369d36ba80a6f16cd22421662cd96937636813a59af18726b8ad2c", + "checksum": "25bdd583eed6ec00fc621b2303086dc902bed60668ab39c3779eafaf8d63d598", "crates": { "anstyle 1.0.1": { "name": "anstyle", diff --git a/test/no_std/cargo-bazel-lock.json b/test/no_std/cargo-bazel-lock.json index 2b9006d226..6c91f18ee5 100644 --- a/test/no_std/cargo-bazel-lock.json +++ b/test/no_std/cargo-bazel-lock.json @@ -1,5 +1,5 @@ { - "checksum": "8d5cd2da30c423aae449c54a04dff3db37ce244c70fa3151ba928116b367dfa4", + "checksum": "5311757f04ad817c63964a66004f5316ded92ee05dbfe3ac59958c0bdb54eaa2", "crates": { "direct-cargo-bazel-deps 0.0.1": { "name": "direct-cargo-bazel-deps", @@ -70,5 +70,99 @@ "workspace_members": { "direct-cargo-bazel-deps 0.0.1": "" }, - "conditions": {} + "conditions": { + "aarch64-apple-darwin": [ + "aarch64-apple-darwin" + ], + "aarch64-apple-ios": [ + "aarch64-apple-ios" + ], + "aarch64-apple-ios-sim": [ + "aarch64-apple-ios-sim" + ], + "aarch64-fuchsia": [ + "aarch64-fuchsia" + ], + "aarch64-linux-android": [ + "aarch64-linux-android" + ], + "aarch64-pc-windows-msvc": [ + "aarch64-pc-windows-msvc" + ], + "aarch64-unknown-linux-gnu": [ + "aarch64-unknown-linux-gnu" + ], + "arm-unknown-linux-gnueabi": [ + "arm-unknown-linux-gnueabi" + ], + "armv7-linux-androideabi": [ + "armv7-linux-androideabi" + ], + "armv7-unknown-linux-gnueabi": [ + "armv7-unknown-linux-gnueabi" + ], + "i686-apple-darwin": [ + "i686-apple-darwin" + ], + "i686-linux-android": [ + "i686-linux-android" + ], + "i686-pc-windows-msvc": [ + "i686-pc-windows-msvc" + ], + "i686-unknown-freebsd": [ + "i686-unknown-freebsd" + ], + "i686-unknown-linux-gnu": [ + "i686-unknown-linux-gnu" + ], + "powerpc-unknown-linux-gnu": [ + "powerpc-unknown-linux-gnu" + ], + "riscv32imc-unknown-none-elf": [ + "riscv32imc-unknown-none-elf" + ], + "riscv64gc-unknown-none-elf": [ + "riscv64gc-unknown-none-elf" + ], + "s390x-unknown-linux-gnu": [ + "s390x-unknown-linux-gnu" + ], + "thumbv7em-none-eabi": [ + "thumbv7em-none-eabi" + ], + "thumbv8m.main-none-eabi": [ + "thumbv8m.main-none-eabi" + ], + "wasm32-unknown-unknown": [ + "wasm32-unknown-unknown" + ], + "wasm32-wasi": [ + "wasm32-wasi" + ], + "x86_64-apple-darwin": [ + "x86_64-apple-darwin" + ], + "x86_64-apple-ios": [ + "x86_64-apple-ios" + ], + "x86_64-fuchsia": [ + "x86_64-fuchsia" + ], + "x86_64-linux-android": [ + "x86_64-linux-android" + ], + "x86_64-pc-windows-msvc": [ + "x86_64-pc-windows-msvc" + ], + "x86_64-unknown-freebsd": [ + "x86_64-unknown-freebsd" + ], + "x86_64-unknown-linux-gnu": [ + "x86_64-unknown-linux-gnu" + ], + "x86_64-unknown-none": [ + "x86_64-unknown-none" + ] + } }