Closed Harjun751 closed 3 months ago
cargo build
will build an application that targets your current platform. cargo build --target wasm32-unknown-unknown
will build an application that targets WASM (like dioxus web). reqwest. It looks like reqwest doesn't support cookies in wasm: https://github.com/seanmonstar/reqwest/pull/1449
Problem
As per title. Everything works fine until using a method provided only in the cookies feature. The project builds fine using
cargo build
My main.rs:
Steps To Reproduce
Steps to reproduce the behavior: Create a new demo project as usual, then add reqwests with cookies
Add some code that uses the cookies feature, like below:
Expected behavior
The build doesn't fail :(
Environment:
Questionnaire