Add wasm32-unknown-unknown support #1769
Conversation
|
Something like: #[cfg(all(feature = "wasm_js", target_arch = "wasm32", target_os = "unknown"))]
use wasm_bindgen_test::wasm_bindgen_test as test;doesn't work (instead of |
it requires adding this line of configuration to every test mod, which may not be the most convenient approach. |
923655f to
bf08aab
Compare
% rg -F 'mod test' | wc -l
41vs % rg -F '#[test]' | wc -l
275We don't have to think about wasm each time we add a test function (only when we add a test module)... |
done |
|
hmm, |
Yep, you can ignore it. |
3062561 to
8e499dd
Compare
#[cfg(not(all(target_family = "wasm", target_os = "unknown")))]
#[deprecated(since = "0.33.0", note = "use trace_v2 instead")]
pub fn trace(&mut self, trace_fn: Option<fn(&str)>) {}
#[cfg(not(all(target_family = "wasm", target_os = "unknown")))]
#[deprecated(since = "0.33.0", note = "use trace_v2 instead")]
pub fn profile(&mut self, profile_fn: Option<fn(&str, Duration)> {}
|
|
Almost 5 years later |
The main diff is to replace
libsqlite3-syswithsqlite-wasm-rson the wasm platform, while keeping everything else unchanged.Previous PR: #1643
resolves #488
resolves #827
resolves #1010