::: {align="center"}
JavaScript bindings for the tsg Rust library using WebAssembly
:::This project provides JavaScript bindings for the tsg
Rust library, compiled to WebAssembly to enable usage in web applications and Node.js environments.
wasm-pack build
wasm-pack test --headless --firefox
wasm-pack publish
After installation:
import * as tsg from 'tsg-core-js';
async function load_tsg() {
await tsg.default();
console.log('tsg loaded');
}
// Use the tsg library functions
// Example usage goes here
- Access the full functionality of the tsg Rust library from JavaScript
- High-performance computations using WebAssembly
- Compatible with both browser and Node.js environments
git clone https://github.com/yourusername/tsg-js.git
cd tsg-js
wasm-pack build
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.