0.1.0 • Published 2 years ago
@chenlexuan/skd v0.1.0
skd
Secret Key Derivation (SKD) implementation
build
build options: change in the [profile.release] section of Cargo.toml
[profile.release]
# Default option. Tell `rustc` to optimize for small code size.
opt-level = "s"
# Tell `rustc` to optimize for speed.
# opt-level = 3compiling with LTO (Link Time Optimizations): add lto = true in the [profile.release] section of Cargo.toml
[profile.release]
lto = truebuild for Node.js
$ wasm-pack build --target nodejsbuild for Browser
$ wasm-pack build --target web
$ cd pkg && npm pkg set name=@tele/rust-sdk-js
# 记得先修改npm包版本
$ npm publish test
$ cd js-test && node test.mjsbenchmark
$ cargo bench0.1.0
2 years ago