Closed tistatos closed 2 months ago
Hi @tistatos, thanks for reporting this! We'll work on getting the fix out.
Fix got merged to the main
branch in smithy-rs, pending release.
Confirmed aws-sdk-s3
in release-2024-04-22 fixed the issue:
➜ s3 git:(release-2024-04-22) cargo build --target wasm32-unknown-unknown --no-default-features
...
Compiling aws-sdk-s3 v1.24.0 (/Users/awsaito/src/aws-sdk-rust/sdk/s3)
Finished dev [unoptimized + debuginfo] target(s) in 0.50s
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
As of https://github.com/smithy-lang/smithy-rs/pull/3465 it's no longer possible to compile the aws-sdk-s3 to wasm. Since it it using ahash with default features enabled, getrandom will be a sub-dependency (via the
runtime-rng
feature of ahash).Expected Behavior
I'd like to be able to compile the aws-sdk-s3 to wasm 😃. Previously this has been possible by disabling the default features on the aws-sdk-s3 crate.
Current Behavior
Compilation of aws-sdk-s3 will fail due to the inclusion of getrandom without its
js
flag enabledReproduction Steps
try to compile the aws-sdk-s3 crate with
cargo build --target wasm32-unknown-unknown --no-default-features
.current output of this command:
Possible Solution
No response
Additional Information/Context
No response
Version
Environment details (OS name and version, etc.)
macos 14.3.1 (23D60)
Logs
No response