why ic-agent is not a wasm-compatible crate?
I want to use rust to implement the front end. When I use ic-agent in wasm, I can't compile it normally.
hyper-rustls = { version = "0.23.0", features = [ "webpki-roots" ] } @eric-swanson
Is it because of this crate that ic-agent is no longer a no-std crate?
You need to use ic-cdk instead. ic-agent is a client library, which can only be used when you are outside of the network. Even if you can compile it in Wasm, many features won't work in the canister code.
My wasm front-end program is running in chrome, I can't use ic-cdk, should ic-agent consider supporting no-std? @chenyan-dfinity
I'm confused. If you want to run in browser, why not use agent-js?
I think it's because they don't want to use JS at all
I want to use rust to implement the front end.
I think it's because they don't want to use JS at all
I want to use rust to implement the front end.
Yes, I'm trying to use the rust language for cross-platform development