Skip to content

Commit 1359267

Browse files
committed
Upgrade getrandom
1 parent 24188e6 commit 1359267

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.cargo/config.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ linker = "aarch64-linux-musl-gcc"
1212
rustflags = ["-C", "target-feature=-crt-static"]
1313

1414
[target.wasm32-unknown-unknown]
15-
rustflags = ["-C", "link-arg=--export-table"]
15+
rustflags = [
16+
"-C",
17+
"link-arg=--export-table",
18+
'--cfg',
19+
'getrandom_backend="custom"',
20+
]
21+
1622

1723
# Statically link Visual Studio redistributables on Windows builds
1824
[target.x86_64-pc-windows-msvc]

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jemallocator = { version = "0.3.2", features = [
9191
], optional = true }
9292

9393
[target.'cfg(target_arch = "wasm32")'.dependencies]
94-
getrandom = { version = "0.2", features = ["custom"], default-features = false }
94+
getrandom = { version = "0.3", default-features = false }
9595

9696
[dev-dependencies]
9797
indoc = "1.0.3"

0 commit comments

Comments
 (0)