Skip to main content
If you know Rust, Sifr’s safety model will feel familiar, but the source language keeps Python-shaped syntax. Use this path to map ownership, typed errors, generated Rust, and native binaries back to concepts you already know.

Rust Concepts in Sifr

Translate Option, Result, borrowing, mutation, and generated Rust into Sifr’s source model.

Ownership and Mutability

Map mut, own, and borrow-by-default to Sifr’s source model.

Error Handling

See how Result appears in Sifr syntax.

Check and Emit

Inspect generated Rust with sifr emit.

Rust Interop

Expose Rust crates and bridge modules through checked Sifr declarations.

Interop by library

Walk through blake3 and reqwest before reading the full reference.

Build and Run

Compile Sifr into native binaries.

Learning Sequence

  1. Build the mapping: Rust Concepts in Sifr.
  2. Inspect generated code: Check and Emit.
  3. Learn source-level ownership: Ownership and Mutability.
  4. Review typed failures: Error Handling.
  5. Understand structured async: Concurrency Overview.
  6. Expose Rust-backed APIs: Rust Interop.
  7. Ship a binary: Build and Run.
Sifr is not a Rust macro language. The generated Rust is an implementation target you can inspect, while the Sifr source model remains the language contract.