Skip to content

The module binding code compile to wasm failed. #2602

@lydiandy

Description

@lydiandy

I try to use Dioxus and SpacetimeDB together. Dioxus compile rust code to wasm and run in browser.
The module binding code compile failed, because of the openssl crate can't compile to wasm.

a lot of errors like this:

[cargo] error[E0412]: cannot find type `c_int` in this scope
   --> /Users/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/openssl-sys-0.9.107/src/./obj_mac.rs:752:33
    |
752 | pub const NID_setct_CapReqTBSX: c_int = 545;
    |                                 ^^^^^ not found in this scope
    |
help: consider importing one of these type aliases

I found the pr about wasm: #1700
Does it means that I have to wait the pr be merged, or any other way?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions