Switch to dark theme

Bimetal documentation

Read these in order if you're new. Each page assumes the ones before it and defines its own terms.

  1. Tutorial writes a small Rust library, then calls it from Python and TypeScript. It takes about ten minutes once the tools are installed.
  2. Concepts explain how Bimetal thinks, without code you need to memorize:

Guides

Look these up when you need them.

To work with Read
Functions, constants, namespaces and default arguments Functions
Structs, enums and field rules Models
Errors that callers branch on Errors
Classes that keep a Rust value Resources
with, for, properties and len() Protocols
async fn and Tokio Async
Host functions that Rust calls Callbacks
Byte strings and numeric arrays Bytes and buffers
Arrow arrays, batches, tables and streams Arrow
Web pages and bundlers Browsers
The native addon and Electron Node.js
Several crates, or projects outside the crate Workspaces
CI, merges and fresh clones Keeping packages current
PyPI and npm Publishing
A large crate you didn't write Wrapping a large project

The white paper

The white paper describes what Bimetal is and why we wrote it: how one contract reaches three hosts, what each boundary promises, how the output stays reproducible, what that costs, and where its limits are. Read it if you want to judge the design rather than use it.

Reference

Internals

For anyone changing the code. They walk through one operation at a time.