You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my Cargo.toml, I have: reqwest = {version="0.10.1", features = ["blocking", "json"]}
In the Visual Studio Code, compilation is fine, it is not showing errors in my code.
But when I run with cargo web, I get: no method named jsonfound for typereqwest::wasm::response::Response`
It seems that cargo web only compiles the default feature, not the additional ones. How can I add those?
The text was updated successfully, but these errors were encountered:
In my Cargo.toml, I have:
reqwest = {version="0.10.1", features = ["blocking", "json"]}
In the Visual Studio Code, compilation is fine, it is not showing errors in my code.
But when I run with cargo web, I get:
no method named
jsonfound for type
reqwest::wasm::response::Response`It seems that cargo web only compiles the default feature, not the additional ones. How can I add those?
The text was updated successfully, but these errors were encountered: