Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
daniel.eades
arti
Commits
5f1f239d
Commit
5f1f239d
authored
Sep 08, 2021
by
janimo
Browse files
Enable js feature for getrandom for WASM.
By default rand does not build for WASM browser targets.
parent
4df5596a
Changes
2
Show whitespace changes
Inline
Side-by-side
crates/tor-bytes/Cargo.toml
View file @
5f1f239d
...
...
@@ -23,3 +23,6 @@ thiserror = "1.0.24"
[dev-dependencies]
hex-literal
=
"0.3.1"
[target.wasm32-unknown-unknown.dependencies]
getrandom
=
{
version
=
"0.2.3"
,
features
=
["js"]
}
crates/tor-llcrypto/Cargo.toml
View file @
5f1f239d
...
...
@@ -45,3 +45,7 @@ serde_test = "1.0.124"
version
=
"1.5.0"
features
=
[
"precommit-hook"
,
"run-cargo-test"
,
"run-cargo-fmt"
,
"run-for-all"
]
[target.wasm32-unknown-unknown.dependencies]
getrandom
=
{
version
=
"0.2.3"
,
features
=
["js"]
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment