diff --git a/generate.sh b/generate.sh index 6cceb0b..1bb1cc6 100755 --- a/generate.sh +++ b/generate.sh @@ -26,6 +26,7 @@ find src -type f -exec sed -i '/^\s*\/\/\/\s*$/d' {} \; # Cookie storage sed -i 's/reqwest::Client::new()/{#[cfg(target_family = "wasm")] {reqwest::Client::new()}\n #[cfg(not(target_family = "wasm"))] { reqwest::Client::builder().cookie_store(true).build().unwrap()}\n }/g' src/apis/configuration.rs sed -i 's/features = \["json", "multipart"\]/features = \["json", "cookies", "multipart"\]/g' Cargo.toml +printf '\n[features]\njs = ["uuid/js"]\n' >> Cargo.toml # add wasm feature #Fix example printf "\n[dev-dependencies]\ntokio = { version = '1', features = ['macros', 'rt-multi-thread'] }" >> Cargo.toml