Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(types): add 'js' feature for wasm#1116

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sfackler merged 1 commit intorust-postgres:masterfromduarten:postgres-types-js
Jul 6, 2024

Conversation

duarten
Copy link
Contributor

Enables the "js" feature ofpostgres-protocol, without which compilingpostgres-types forwasm32-unknown-unknown would result in:

❯ cargo build --target wasm32-unknown-unknown -p postgres-types   Compiling getrandom v0.2.12error: the wasm*-unknown-unknown targets are not supported by default, you may need to enable the "js" feature. For more information see: https://docs.rs/getrandom/#webassembly-support   --> /Users/duarte.nunes/.cargo/registry/src/index.crates.io-6f17d22bba15001f/getrandom-0.2.12/src/lib.rs:291:9    |291 | /         compile_error!("the wasm*-unknown-unknown targets are not supported by \292 | |                         default, you may need to enable the \"js\" feature. \293 | |                         For more information see: \294 | |                         https://docs.rs/getrandom/#webassembly-support");    | |________________________________________________________________________^error[E0433]: failed to resolve: use of undeclared crate or module `imp`   --> /Users/duarte.nunes/.cargo/registry/src/index.crates.io-6f17d22bba15001f/getrandom-0.2.12/src/lib.rs:347:9    |347 |         imp::getrandom_inner(dest)?;    |         ^^^ use of undeclared crate or module `imp`For more information about this error, try `rustc --explain E0433`.error: could not compile `getrandom` (lib) due to 2 previous errors

@duartenduartenforce-pushed thepostgres-types-js branch 3 times, most recently from68bf415 to6aaf77aCompareMarch 11, 2024 18:08
duarten added a commit to duarten/cornucopia that referenced this pull requestMar 11, 2024
Sets up some feature flags to allow compiling for wasm.Due to limitation in rust-postgres, this only covers the async client.Requiresrust-postgres/rust-postgres#1116.
@duarten
Copy link
ContributorAuthor

I think the CI failure is unrelated.

@duarten
Copy link
ContributorAuthor

Ping.

Enables the "js" feature of postgres-protocol.
@sfacklersfackler merged commit20749d8 intorust-postgres:masterJul 6, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@duarten@sfackler

[8]ページ先頭

©2009-2025 Movatter.jp