| Add WASM support and sysroot implementation - Updated `build.rs` to conditionally compile for WASM targets, including setting up the build environment and compiling necessary C files. - Modified `lib.rs` to include new modules for WASM and conditionally compile existing modules based on the target family. - Introduced `wasm.rs` for WASM-specific functionality, including a `generate_dot` function for generating dot representations. - Created `wasm_sysroot.rs` to implement standard C library functions for memory management and character classification, tailored for WASM. - Added a complete set of C headers and source files in the `wasm-sysroot` directory to provide necessary functionality for the WASM environment, including `stdlib`, `stdio`, `string`, and `ctype` implementations. - Implemented basic character classification functions in `ctype.c` and `wctype.c` for wide character support. - Added a smoke test script `wasm-smoke.mjs` to validate the WASM build and functionality. - Configured the build environment to use a custom clang script for WASM compilation. | 7 个月前 |