mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
third_party: force all crates to use the latest version of rand_core
This commit is contained in:
parent
6ad2e001b4
commit
d3e5a13201
2 changed files with 97 additions and 61 deletions
|
@ -690,12 +690,9 @@ rust_crate("rand") {
|
|||
":rand_os",
|
||||
":rand_pcg",
|
||||
":rand_xorshift",
|
||||
]
|
||||
extern_version = [
|
||||
{
|
||||
crate_name = "rand_core"
|
||||
crate_version = "0.3.1"
|
||||
},
|
||||
|
||||
# Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
":rand_core",
|
||||
]
|
||||
args = [
|
||||
"--cap-lints",
|
||||
|
@ -708,6 +705,14 @@ rust_crate("rand") {
|
|||
"rustc_1_26",
|
||||
"rustc_1_27",
|
||||
]
|
||||
|
||||
## Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
# extern_version = [
|
||||
# {
|
||||
# crate_name = "rand_core"
|
||||
# crate_version = "0.3.1"
|
||||
# },
|
||||
# ]
|
||||
if (is_posix) {
|
||||
extern += [ ":libc" ]
|
||||
}
|
||||
|
@ -719,12 +724,6 @@ rust_crate("rand") {
|
|||
rust_crate("rand_chacha") {
|
||||
edition = "2015"
|
||||
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_chacha-0.1.1/src/lib.rs"
|
||||
extern_version = [
|
||||
{
|
||||
crate_name = "rand_core"
|
||||
crate_version = "0.3.1"
|
||||
},
|
||||
]
|
||||
args = [
|
||||
"--cap-lints",
|
||||
"allow",
|
||||
|
@ -732,6 +731,17 @@ rust_crate("rand_chacha") {
|
|||
|
||||
# Added by custom-build script.
|
||||
cfg = [ "rustc_1_26" ]
|
||||
|
||||
# Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
extern = [ ":rand_core" ]
|
||||
|
||||
## Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
# extern_version = [
|
||||
# {
|
||||
# crate_name = "rand_core"
|
||||
# crate_version = "0.3.1"
|
||||
# },
|
||||
# ]
|
||||
}
|
||||
|
||||
rust_crate("rand_core") {
|
||||
|
@ -750,48 +760,63 @@ rust_crate("rand_core") {
|
|||
rust_crate("rand_hc") {
|
||||
edition = "2015"
|
||||
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_hc-0.1.0/src/lib.rs"
|
||||
extern_version = [
|
||||
{
|
||||
crate_name = "rand_core"
|
||||
crate_version = "0.3.1"
|
||||
},
|
||||
]
|
||||
args = [
|
||||
"--cap-lints",
|
||||
"allow",
|
||||
]
|
||||
|
||||
# Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
extern = [ ":rand_core" ]
|
||||
|
||||
## Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
# extern_version = [
|
||||
# {
|
||||
# crate_name = "rand_core"
|
||||
# crate_version = "0.3.1"
|
||||
# },
|
||||
# ]
|
||||
}
|
||||
|
||||
rust_crate("rand_isaac") {
|
||||
edition = "2015"
|
||||
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_isaac-0.1.1/src/lib.rs"
|
||||
extern_version = [
|
||||
{
|
||||
crate_name = "rand_core"
|
||||
crate_version = "0.3.1"
|
||||
},
|
||||
]
|
||||
args = [
|
||||
"--cap-lints",
|
||||
"allow",
|
||||
]
|
||||
|
||||
# Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
extern = [ ":rand_core" ]
|
||||
|
||||
## Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
# extern_version = [
|
||||
# {
|
||||
# crate_name = "rand_core"
|
||||
# crate_version = "0.3.1"
|
||||
# },
|
||||
# ]
|
||||
}
|
||||
|
||||
rust_crate("rand_os") {
|
||||
edition = "2015"
|
||||
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_os-0.1.1/src/lib.rs"
|
||||
extern_version = [
|
||||
{
|
||||
crate_name = "rand_core"
|
||||
crate_version = "0.3.1"
|
||||
},
|
||||
]
|
||||
args = [
|
||||
"--cap-lints",
|
||||
"allow",
|
||||
]
|
||||
|
||||
# Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
extern = [ ":rand_core" ]
|
||||
|
||||
## Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
# extern_version = [
|
||||
# {
|
||||
# crate_name = "rand_core"
|
||||
# crate_version = "0.3.1"
|
||||
# },
|
||||
# ]
|
||||
if (is_posix) {
|
||||
extern = [ ":libc" ]
|
||||
extern += [ ":libc" ]
|
||||
}
|
||||
|
||||
# Per the #[link(...)] attribute found in 'src/macos.rs'.
|
||||
|
@ -799,19 +824,13 @@ rust_crate("rand_os") {
|
|||
libs = [ "Security.framework" ]
|
||||
}
|
||||
if (is_win) {
|
||||
extern = [ ":winapi" ]
|
||||
extern += [ ":winapi" ]
|
||||
}
|
||||
}
|
||||
|
||||
rust_crate("rand_pcg") {
|
||||
edition = "2015"
|
||||
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_pcg-0.1.1/src/lib.rs"
|
||||
extern_version = [
|
||||
{
|
||||
crate_name = "rand_core"
|
||||
crate_version = "0.3.1"
|
||||
},
|
||||
]
|
||||
args = [
|
||||
"--cap-lints",
|
||||
"allow",
|
||||
|
@ -819,21 +838,37 @@ rust_crate("rand_pcg") {
|
|||
|
||||
# Added by custom-build script.
|
||||
cfg = [ "rust_1_26" ]
|
||||
|
||||
# Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
extern = [ ":rand_core" ]
|
||||
|
||||
## Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
# extern_version = [
|
||||
# {
|
||||
# crate_name = "rand_core"
|
||||
# crate_version = "0.3.1"
|
||||
# },
|
||||
# ]
|
||||
}
|
||||
|
||||
rust_crate("rand_xorshift") {
|
||||
edition = "2015"
|
||||
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_xorshift-0.1.1/src/lib.rs"
|
||||
extern_version = [
|
||||
{
|
||||
crate_name = "rand_core"
|
||||
crate_version = "0.3.1"
|
||||
},
|
||||
]
|
||||
args = [
|
||||
"--cap-lints",
|
||||
"allow",
|
||||
]
|
||||
|
||||
# Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
extern = [ ":rand_core" ]
|
||||
|
||||
## Override: use rand_core v0.4.0 instead of v0.3.1.
|
||||
# extern_version = [
|
||||
# {
|
||||
# crate_name = "rand_core"
|
||||
# crate_version = "0.3.1"
|
||||
# },
|
||||
# ]
|
||||
}
|
||||
|
||||
rust_crate("remove_dir_all") {
|
||||
|
@ -1639,22 +1674,23 @@ rust_crate("webpki_roots") {
|
|||
# }
|
||||
# }
|
||||
|
||||
rust_crate("rand_core-0.3.1") {
|
||||
crate_name = "rand_core"
|
||||
crate_version = "0.3.1"
|
||||
edition = "2015"
|
||||
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_core-0.3.1/src/lib.rs"
|
||||
features = [
|
||||
"alloc",
|
||||
"rand_core",
|
||||
"std",
|
||||
]
|
||||
extern = [ ":rand_core" ]
|
||||
args = [
|
||||
"--cap-lints",
|
||||
"allow",
|
||||
]
|
||||
}
|
||||
## Override: use rand_core v0.4.0 instead.
|
||||
# rust_crate("rand_core-0.3.1") {
|
||||
# crate_name = "rand_core"
|
||||
# crate_version = "0.3.1"
|
||||
# edition = "2015"
|
||||
# source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/rand_core-0.3.1/src/lib.rs"
|
||||
# features = [
|
||||
# "alloc",
|
||||
# "rand_core",
|
||||
# "std",
|
||||
# ]
|
||||
# extern = [ ":rand_core" ]
|
||||
# args = [
|
||||
# "--cap-lints",
|
||||
# "allow",
|
||||
# ]
|
||||
# }
|
||||
|
||||
if (is_posix) {
|
||||
rust_crate("arc_swap") {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 7a3d4c7de7aee092b4495c59122a3ce853be12a0
|
||||
Subproject commit 1ffcb4c9fb3cf7dd67850bb9cd6f25d7206d9915
|
Loading…
Add table
Reference in a new issue