| Crates.io | codex-bindings |
| lib.rs | codex-bindings |
| version | 0.1.3 |
| created_at | 2025-11-10 01:33:03.827163+00 |
| updated_at | 2025-11-17 00:47:22.974235+00 |
| description | Rust bindings for Codex, the Decentralized Durability Engine |
| homepage | https://codex.storage |
| repository | https://github.com/nipsysdev/codex-rust-bindings |
| max_upload_size | |
| id | 1924645 |
| size | 268,015 |
This repository provides Rust bindings for the Codex library, enabling seamless integration with Rust projects.
Include in your Cargo project:
[dependencies]
codex-bindings = "0.1.3"
To learn how to use those bindings, take a look at the example project or the integration tests.
This crate automatically builds the required libcodex library during compilation, so you don't need to install nim-codex separately. However, you will need:
Building will automatically:
Note: The first build may take 10-20 minutes as it needs to build the Nim compiler from source. Subsequent builds will be much faster.
cargo build --release
# or, for debug
cargo build
# Run all tests
cargo test
# Run unit tests
cargo test-unit
# Run integration tests
cargo test-integration
# Run doctests
cargo test-doc
This crate supports two linking modes via Cargo features:
cargo build
# or explicitly
cargo build --features dynamic-linking
cargo build --features static-linking
[dependencies]
codex-bindings = { version = "0.1.3", features = ["static-linking"] }