Skip to content

Written in Rust, compiled to Wasm, for computing ssimulacra2 in browser or Nodejs environment. 使用 rust 编写,编译为 wasm,用于浏览器或 Nodejs 环境计算 ssimulacra2。

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

iola1999/calc-s2-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calc-s2-rust

ssimulacra2 计算工具,使用 Rust 编写并构建为 Wasm, 使其可以运行在 Web 端。

Written in Rust, compiled to Wasm, for computing ssimulacra2 in browser or Nodejs environment.

Usage

npm package: https://www.npmjs.com/package/calc-s2-rust

Demo: https://calc-s2-vitefe.vercel.app/

Demo code: https://github.com/iola1999/calc-s2-vitefe

Build

wasm-pack build --target web

Credits

ssimulacra2 的计算部分依赖 https://github.com/rust-av/ssimulacra2,但因没能关闭的 rayon feature(会导致无法直接跑在浏览器端),故暂时直接复制了代码过来修改。

TODO

About

Written in Rust, compiled to Wasm, for computing ssimulacra2 in browser or Nodejs environment. 使用 rust 编写,编译为 wasm,用于浏览器或 Nodejs 环境计算 ssimulacra2。

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages