-
Notifications
You must be signed in to change notification settings - Fork 51
Make dedup critical crates compilation-compat with wasm #271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| [dependencies] | ||
| tokio = { version = "1.36", features = ["full"] } | ||
| tokio = { version = "1.44", features = ["sync"] } | ||
| async-scoped = { version = "0.7", features = ["use-tokio"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think async-scoped with use-tokio feature is likely still going to cause issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wanted to make it compilation-compat. We are not going to use in JS/web workers anyway.
| blake3 = "1.5.4" | ||
|
|
||
| [target.'cfg(target_family = "wasm")'.dependencies] | ||
| uuid = { version = "1", features = ["v4", "js"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you include the "js" feature for non-wasm build is that an error, I think the exports will just get ignored?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about that
| utils = { path = "../utils" } | ||
| tempdir = "0.3.7" | ||
| tokio = { version = "1.36", features = ["full"] } | ||
| tempfile = "3.19.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this wasm compat??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is compilation-compat but won't work in web workers so we won't use this. But tempdir is very old and uses a very old version of rand, which uses a very old version of getrandom, which doesn't support the new wasm_js feature.
randso we can use the new "wasm_js" feature for the underlyinggetrandomdependency.gen,gen_rangefunctions.tempdirtotempfilebecausetempdiruses a very old non-wasm compat version ofrand, and is merged into the latter and archived.