You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that this bloat is only exposed to users of -Zbuild-std so it doesn't matter much. I'd take a patch removing it from panic_abort and unwind though.
getrandom should only be used as a dev-dep, and also we can't easily update it for various unfortunate reasons, so I'm not sure how much I'd recommend pushing on that.
Note that this bloat is only exposed to users of -Zbuild-std so it doesn't matter much. I'd take a patch removing it from panic_abort and unwind though.
not exactly true, it's shipped in the normal distribution:
getrandom should only be used as a dev-dep, and also we can't easily update it for various unfortunate reasons, so I'm not sure how much I'd recommend pushing on that.
Locally I was able to update it from 0.1.14 -> 0.1.16, which depends on cfg-if 1.0.0. Will this break in ways I don't understand?
not exactly true, it's shipped in the normal distribution
Good point.
Locally I was able to update it from 0.1.14 -> 0.1.16, which depends on cfg-if 1.0.0. Will this break in ways I don't understand?
That's probably be fine. I think the issue is with getrandom 0.2 rather than the 0.1.x series -- whichever one requires wasm_bindgen for the wasm impl and compile_errors when it fails to resolve an impl (since std cannot depend on wasm-bindgen).
Feel free to r? @thomcc on a PR moving the stdlib to cfg-if v1.x.y.
Activity
chbaker0 commentedon Oct 21, 2022
@rustbot label T-libs
thomcc commentedon Oct 21, 2022
Note that this bloat is only exposed to users of -Zbuild-std so it doesn't matter much. I'd take a patch removing it from
panic_abortandunwindthough.getrandomshould only be used as a dev-dep, and also we can't easily update it for various unfortunate reasons, so I'm not sure how much I'd recommend pushing on that.chbaker0 commentedon Oct 21, 2022
not exactly true, it's shipped in the normal distribution:
Though it is pretty minor.
Locally I was able to update it from 0.1.14 -> 0.1.16, which depends on cfg-if 1.0.0. Will this break in ways I don't understand?
thomcc commentedon Oct 21, 2022
Good point.
That's probably be fine. I think the issue is with getrandom 0.2 rather than the 0.1.x series -- whichever one requires wasm_bindgen for the wasm impl and compile_errors when it fails to resolve an impl (since std cannot depend on wasm-bindgen).
Feel free to
r? @thomccon a PR moving the stdlib to cfg-if v1.x.y.chbaker0 commentedon Oct 21, 2022
Cool! I put it up for discussion: #103367
Rollup merge of rust-lang#103367 - chbaker0:update-std-getrandom, r=t…
Rollup merge of rust-lang#104692 - chbaker0:libtest-cfg-if, r=thomcc
Rollup merge of #103367 - chbaker0:update-std-getrandom, r=thomcc