This repository demonstrates how to integrate the Codex Rust bindings into a Rust project.
The project starts a Codex node, uploads then downloads a hello.txt file before stopping the node.
cargo run --bin example- Creates a Codex node with basic configuration
- Gets the version information from the node
- Starts the node to begin operations
- Uploads data from an in-memory reader with the filename "hello.txt"
- Downloads the data back to a file named "hello.txt"
- Verifies the content to ensure upload/download was successful
- Stops and destroys the node to clean up resources
codex-rust-bindings- The main Codex bindings cratetokio- Async runtime for Rustenv_logger- Logging implementationlog- Logging facade