@chenlexuan/skd
v0.1.0
Published
Secret Key Derivation (SKD) implementation
Downloads
2
Readme
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 = 3
compiling with LTO (Link Time Optimizations): add lto = true
in the [profile.release]
section of Cargo.toml
[profile.release]
lto = true
build for Node.js
$ wasm-pack build --target nodejs
build 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.mjs
benchmark
$ cargo bench