Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wasm support #73

Closed
SionoiS opened this issue Feb 24, 2021 · 9 comments
Closed

Wasm support #73

SionoiS opened this issue Feb 24, 2021 · 9 comments

Comments

@SionoiS
Copy link
Contributor

SionoiS commented Feb 24, 2021

Opening this issue for tracking and to help me remember caveats.

seanmonstar/reqwest#1141
seanmonstar/reqwest#1151
seanmonstar/reqwest#1020
seanmonstar/reqwest#1013

Will have to wait for crate split #43, async multipart #58, and reqwest support #69.

@SionoiS
Copy link
Contributor Author

SionoiS commented May 5, 2021

Seems like Tokio can't be compiled for wasm32-unknown-unknown because of mio dependency, which is a big deal...

I will probably create a small ipfs api for wasm for my own use, if I even can.

@SionoiS SionoiS closed this as completed Jan 7, 2022
@tennox
Copy link

tennox commented Nov 19, 2022

@SionoiS
I'm also looking to use ipfs client in wasm.
Did you find a solution?

Seems tokio is mainly used with hyper backend, so the reqwest backend should be a possible solution, no?

@tennox
Copy link

tennox commented Nov 19, 2022

Edit: Found this crate which compiles successfully to wasm. Some more testing needed though 🤔
https://lib.rs/crates/semtexzv-ipfsapi

@SionoiS
Copy link
Contributor Author

SionoiS commented Nov 21, 2022

@tennox

https://lib.rs/crates/semtexzv-ipfsapi Not async which is weird when used on other targets.

My code is at https://github.com/Defluencer/rust-defluencer/tree/develop/ipfs-api Not published though.

@tennox
Copy link

tennox commented Nov 21, 2022

@tennox

https://lib.rs/crates/semtexzv-ipfsapi Not async which is weird when used on other targets.

I think it is async 🧐
Started forking it to add dag support...

My code is at https://github.com/Defluencer/rust-defluencer/tree/develop/ipfs-api Not published though.

...but thanks for this it's a good reference 😎

@SionoiS
Copy link
Contributor Author

SionoiS commented Nov 21, 2022

The best would be to implement a backend with reqwest. I may be more feasible than last year.

I don't know if you got time to look into it.

@tennox
Copy link

tennox commented Nov 21, 2022

@SionoiS
Copy link
Contributor Author

SionoiS commented Nov 22, 2022

I meant to say update rust-ipfs-api to include a backend that compile to wasm.

@tennox
Copy link

tennox commented Nov 22, 2022

Oh , now i get it!
that's actually an intruiging idea 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants