This is an automated email from the ASF dual-hosted git repository. yuanz pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-crates.git
commit 814d9e2f4b02e94095dc2d52607f6a5065b68c86 Author: Yuan Zhuang <[email protected]> AuthorDate: Wed Aug 13 08:09:06 2025 +0000 getrandom: use the original Cargo.toml --- getrandom-0.2.16/Cargo.toml | 154 +++++++++++++-------------------------- getrandom-0.2.16/Cargo.toml.orig | 67 ----------------- 2 files changed, 50 insertions(+), 171 deletions(-) diff --git a/getrandom-0.2.16/Cargo.toml b/getrandom-0.2.16/Cargo.toml index 41cef52..0365734 100644 --- a/getrandom-0.2.16/Cargo.toml +++ b/getrandom-0.2.16/Cargo.toml @@ -1,121 +1,67 @@ -# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO -# -# When uploading crates to the registry Cargo will automatically -# "normalize" Cargo.toml files for maximal compatibility -# with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies. -# -# If you are reading this file be aware that the original Cargo.toml -# will likely look very different (and much more reasonable). -# See Cargo.toml.orig for the original contents. - [package] -edition = "2018" name = "getrandom" -version = "0.2.16" +version = "0.2.16" # Also update html_root_url in lib.rs when bumping this +edition = "2018" authors = ["The Rand Project Developers"] -build = false -exclude = [".*"] -autolib = false -autobins = false -autoexamples = false -autotests = false -autobenches = false +license = "MIT OR Apache-2.0" description = "A small cross-platform library for retrieving random data from system source" documentation = "https://docs.rs/getrandom" -readme = "README.md" -categories = [ - "os", - "no-std", -] -license = "MIT OR Apache-2.0" repository = "https://github.com/rust-random/getrandom" +categories = ["os", "no-std"] +exclude = [".*"] -[package.metadata.cross.target.x86_64-unknown-netbsd] -pre-build = [ - "mkdir -p /tmp/netbsd", - "curl https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/amd64/binary/sets/base.tar.xz -O", - "tar -C /tmp/netbsd -xJf base.tar.xz", - "cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib", - "rm base.tar.xz", - "rm -rf /tmp/netbsd", -] +[dependencies] +cfg-if = "1" -[package.metadata.docs.rs] -features = [ - "std", - "custom", -] -rustdoc-args = [ - "--cfg", - "docsrs", -] +# When built as part of libstd +compiler_builtins = { version = "0.1", optional = true } +core = { version = "1.0", optional = true, package = "rustc-std-workspace-core" } + +[target.'cfg(unix)'.dependencies] +libc = { version = "0.2.154", default-features = false } + +[target.'cfg(target_os = "wasi")'.dependencies] +wasi = { version = "0.11", default-features = false } + +[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies] +wasm-bindgen = { version = "0.2.62", default-features = false, optional = true } +js-sys = { version = "0.3", optional = true } +[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies] +wasm-bindgen-test = "0.3.18" [features] -custom = [] -js = [ - "wasm-bindgen", - "js-sys", -] +# Implement std-only traits for getrandom::Error +std = [] +# Disable `/dev/urandom` fallback for Linux and Android targets. +# Bumps minimum supported Linux kernel version to 3.17 and Android API level to 23 (Marshmallow). linux_disable_fallback = [] +# Feature to enable fallback RDRAND-based implementation on x86/x86_64 rdrand = [] +# Feature to enable JavaScript bindings on wasm*-unknown-unknown +js = ["wasm-bindgen", "js-sys"] +# Feature to enable custom RNG implementations +custom = [] +# Unstable feature to support being a libstd dependency rustc-dep-of-std = [ - "compiler_builtins", - "core", - "libc/rustc-dep-of-std", - "wasi/rustc-dep-of-std", + "compiler_builtins", + "core", + "libc/rustc-dep-of-std", + "wasi/rustc-dep-of-std", ] -std = [] +# Unstable/test-only feature to run wasm-bindgen tests in a browser test-in-browser = [] -[lib] -name = "getrandom" -path = "src/lib.rs" - -[[test]] -name = "custom" -path = "tests/custom.rs" - -[[test]] -name = "normal" -path = "tests/normal.rs" - -[[test]] -name = "rdrand" -path = "tests/rdrand.rs" - -[[bench]] -name = "buffer" -path = "benches/buffer.rs" - -[dependencies.cfg-if] -version = "1" - -[dependencies.compiler_builtins] -version = "0.1" -optional = true - -[dependencies.core] -version = "1.0" -optional = true -package = "rustc-std-workspace-core" - -[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies.js-sys] -version = "0.3" -optional = true - -[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies.wasm-bindgen] -version = "0.2.62" -optional = true -default-features = false - -[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test] -version = "0.3.18" - -[target.'cfg(target_os = "wasi")'.dependencies.wasi] -version = "0.11" -default-features = false +[package.metadata.docs.rs] +features = ["std", "custom"] +rustdoc-args = ["--cfg", "docsrs"] -[target."cfg(unix)".dependencies.libc] -version = "0.2.154" -default-features = false +# workaround for https://github.com/cross-rs/cross/issues/1345 +[package.metadata.cross.target.x86_64-unknown-netbsd] +pre-build = [ + "mkdir -p /tmp/netbsd", + "curl https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/amd64/binary/sets/base.tar.xz -O", + "tar -C /tmp/netbsd -xJf base.tar.xz", + "cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib", + "rm base.tar.xz", + "rm -rf /tmp/netbsd", +] diff --git a/getrandom-0.2.16/Cargo.toml.orig b/getrandom-0.2.16/Cargo.toml.orig deleted file mode 100644 index 0365734..0000000 --- a/getrandom-0.2.16/Cargo.toml.orig +++ /dev/null @@ -1,67 +0,0 @@ -[package] -name = "getrandom" -version = "0.2.16" # Also update html_root_url in lib.rs when bumping this -edition = "2018" -authors = ["The Rand Project Developers"] -license = "MIT OR Apache-2.0" -description = "A small cross-platform library for retrieving random data from system source" -documentation = "https://docs.rs/getrandom" -repository = "https://github.com/rust-random/getrandom" -categories = ["os", "no-std"] -exclude = [".*"] - -[dependencies] -cfg-if = "1" - -# When built as part of libstd -compiler_builtins = { version = "0.1", optional = true } -core = { version = "1.0", optional = true, package = "rustc-std-workspace-core" } - -[target.'cfg(unix)'.dependencies] -libc = { version = "0.2.154", default-features = false } - -[target.'cfg(target_os = "wasi")'.dependencies] -wasi = { version = "0.11", default-features = false } - -[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies] -wasm-bindgen = { version = "0.2.62", default-features = false, optional = true } -js-sys = { version = "0.3", optional = true } -[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies] -wasm-bindgen-test = "0.3.18" - -[features] -# Implement std-only traits for getrandom::Error -std = [] -# Disable `/dev/urandom` fallback for Linux and Android targets. -# Bumps minimum supported Linux kernel version to 3.17 and Android API level to 23 (Marshmallow). -linux_disable_fallback = [] -# Feature to enable fallback RDRAND-based implementation on x86/x86_64 -rdrand = [] -# Feature to enable JavaScript bindings on wasm*-unknown-unknown -js = ["wasm-bindgen", "js-sys"] -# Feature to enable custom RNG implementations -custom = [] -# Unstable feature to support being a libstd dependency -rustc-dep-of-std = [ - "compiler_builtins", - "core", - "libc/rustc-dep-of-std", - "wasi/rustc-dep-of-std", -] -# Unstable/test-only feature to run wasm-bindgen tests in a browser -test-in-browser = [] - -[package.metadata.docs.rs] -features = ["std", "custom"] -rustdoc-args = ["--cfg", "docsrs"] - -# workaround for https://github.com/cross-rs/cross/issues/1345 -[package.metadata.cross.target.x86_64-unknown-netbsd] -pre-build = [ - "mkdir -p /tmp/netbsd", - "curl https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/amd64/binary/sets/base.tar.xz -O", - "tar -C /tmp/netbsd -xJf base.tar.xz", - "cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib", - "rm base.tar.xz", - "rm -rf /tmp/netbsd", -] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
