Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

Rust

Add to your Cargo.toml:

[dependencies]
precision-core = "0.1"
financial-calc = "0.1"  # optional
risk-metrics = "0.1"    # optional

For no_std environments:

[dependencies]
precision-core = { version = "0.1", default-features = false }

JavaScript / TypeScript

npm install @dijkstra-keystone/wasm

Or via CDN:

<script type="module">
  import init, * as keystone from 'https://unpkg.com/@dijkstra-keystone/wasm';
  await init();
  console.log(keystone.add("0.1", "0.2")); // "0.3"
</script>

Building from Source

git clone https://github.com/dijkstra-keystone/keystone
cd keystone
cargo build --release

For WASM:

cargo build --target wasm32-unknown-unknown --release -p wasm-bindings