0.1.0 • Published 11 months ago

@chenlexuan/skd v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

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
0.1.0

11 months ago