Skip to main content

truthlinked_axiom_sdk/
lib.rs

1//! TruthLinked Axiom Cell SDK
2//!
3//! Build Cells using the IR pipeline or CellBuilder directly.
4//! For high-level cell authoring, use the `axiom-cc` compiler with `.cell` source files.
5//!
6//! # Example (low-level)
7//! ```rust
8//! use truthlinked_axiom_sdk::CellBuilder;
9//!
10//! let bytecode = CellBuilder::new()
11//!     .require_owner()
12//!     .get_caller(1)
13//!     .load_imm64(2, 1000)
14//!     .sstore(1, 2)
15//!     .halt()
16//!     .build();
17//! ```
18
19pub mod abi;
20pub mod builder;
21pub mod codegen;
22pub mod hashing;
23pub mod ir;
24pub mod op;
25pub mod regalloc;
26
27pub use builder::CellBuilder;
28pub use truthlinked_axiom::bytecode::{CellBytecode, MAGIC, VERSION};