Skip to content

nipsysdev/example-codex-rust-bindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example Codex Rust Bindings

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.

Usage

Run the example

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages