Commit e80363c
committed
Add WASM support via libm crate fallback
- m_sys.rs: Keep only FFI declarations for unix/windows
- m.rs: Add fallback to libm crate for WASM and other non-native targets
- Cargo.toml: Add libm dependency for non-unix/windows targets
The fallback uses pure Rust libm crate when native libm is unavailable
(e.g., WASM builds), avoiding 'env' import errors.1 parent 1434545 commit e80363c
3 files changed
+311
-87
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
0 commit comments