Open WarrenN1 opened 3 weeks ago
add default-feature = false to prevent the tokio runtime from being pulled.
This does not work. It causes the entire library to not be imported because the library seems to mandate a runtime.,
You need to make your own implementation of the Client that uses Cloudflare worker Fetch and wait_until.
Describe the bug
I am compiling via wasm32-unknown-unknown and I have structs that contain stripe IDs. I would like to be able to serialize etc. which is all supported, but the TLS and tokio is not supported in WASM and therefore the stripe async library will not compile.
I need to simply import only the structs and not the client. In library terms, importing ids, resources and none of the client and/or async dependencies.
To Reproduce
Create a trunk project and then set a dependency for async-strip = async-stripe = { version = "*", features = [""]}
Expected behavior
There should be a way to import just the structs with serialization etc. without importing the client.
Code snippets
No response
OS
Ubuntu 22
Rust version
rustc 1.82.0 (f6e511eec 2024-10-15)
Library version
0.15.1
API version
2020-08-07
Additional context
No response