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 Library

Add whisky to your project:

cargo add whisky

Or add it directly to your Cargo.toml:

[dependencies]
whisky = "1.0.28-beta.1"

Feature Flags

By default, all features are enabled (full). You can selectively enable only what you need:

# Full (default) — includes wallet + provider
whisky = "1.0.28-beta.1"

# Just common types (minimal, no serializer backends)
whisky = { version = "1.0.28-beta.1", default-features = false }

# Wallet only (signing + key management)
whisky = { version = "1.0.28-beta.1", default-features = false, features = ["wallet"] }

# Provider only (Blockfrost/Maestro integrations)
whisky = { version = "1.0.28-beta.1", default-features = false, features = ["provider"] }
FeatureIncludesUse Case
full (default)wallet + providerFull DApp backend
walletSigning, key encryptionTransaction signing only
providerBlockfrost, MaestroBlockchain data fetching

JS / TS WASM Library

For JavaScript or TypeScript projects, whisky is available as a WASM package:

# For Node.js
yarn add @sidan-lab/whisky-js-nodejs

# For browser
yarn add @sidan-lab/whisky-js-browser

Prerequisites

For building from source, make sure LLVM is installed on your system:

  • macOS: brew install llvm
  • Ubuntu/Debian: apt install llvm-dev libclang-dev
  • Windows: Install via LLVM releases