arlyon / async-stripe

Async (and blocking!) Rust bindings for the Stripe API
https://payments.rs
Apache License 2.0
436 stars 127 forks source link

Doesn't build on wasm32-unknown-unknown because of stdweb #432

Closed rdbisme closed 7 months ago

rdbisme commented 12 months ago

Describe the bug

Hello, I'm trying to use this on Cloudflare Workers, but the build doesn't go throught because of: https://github.com/rustwasm/wasm-bindgen/issues/3415.

Is there a way you might fix it? I think the stdweb dep is coming from stdweb -> time -> cookie -> http_types.

To Reproduce

Add

async-stripe = { version = "*", default-features = false, features = [
    "runtime-async-std-surf",
    "webhook-endpoints",
] }

in cargo and cargo build --target wasm32-unknown-unkown.

Expected behavior

I'd love to use this crate with a WASM target

Code snippets

No response

OS

Linux (WSL)

Rust version

1.70

Library version

0.22.2

API version

2023-08-16

Additional context

No response

arlyon commented 11 months ago

Hi! I have built this crate for wasm in the past (but before May 9) so I can confirm it works. I am not sure where your compile error comes from though, I don't see stdweb anywhere in the dep graph for this crate. If you can give me the exact cargo tree command I can use to repro, I can investigate.

arlyon commented 7 months ago

I am going to close this. If you can produce a reproduction or a PR feel free to leave it here.