https://github.com/nipsysdev/example-codex-rust-bindings
https://github.com/nipsysdev/example-codex-rust-bindings
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nipsysdev/example-codex-rust-bindings
- Owner: nipsysdev
- Created: 2025-11-10T03:00:02.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-11-18T14:36:24.000Z (7 months ago)
- Last Synced: 2025-12-13T21:04:47.995Z (6 months ago)
- Language: Rust
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example Codex Rust Bindings
This repository demonstrates how to integrate the [Codex Rust bindings](https://github.com/nipsysdev/codex-rust-bindings) into a Rust project.
The project starts a Codex node, uploads then downloads a hello.txt file before stopping the node.
## Usage
### Run the example
```sh
cargo run --bin example
```
## What the example does
1. **Creates a Codex node** with basic configuration
2. **Gets the version** information from the node
3. **Starts the node** to begin operations
4. **Uploads data** from an in-memory reader with the filename "hello.txt"
5. **Downloads the data** back to a file named "hello.txt"
6. **Verifies the content** to ensure upload/download was successful
7. **Stops and destroys** the node to clean up resources
## Dependencies
- `codex-rust-bindings` - The main Codex bindings crate
- `tokio` - Async runtime for Rust
- `env_logger` - Logging implementation
- `log` - Logging facade