| Crates.io | baqup-agent |
| lib.rs | baqup-agent |
| version | 0.0.1 |
| created_at | 2025-12-07 14:35:50.786486+00 |
| updated_at | 2025-12-07 14:35:50.786486+00 |
| description | SDK for building baqup backup agents in Rust |
| homepage | https://github.com/baqupio/baqup |
| repository | https://github.com/baqupio/baqup-agent-rs |
| max_upload_size | |
| id | 1971698 |
| size | 60,988 |
SDK for building baqup backup agents in Rust.
⚠️ This is a placeholder crate. Full implementation coming soon.
baqup is a container-native backup orchestration system. Agents are stateless containers that perform backup and restore operations on behalf of the controller.
This SDK provides everything needed to build a compliant baqup agent:
ExitCode, AgentState, LogLevel[dependencies]
baqup-agent = "0.0.1"
use baqup_agent::{ExitCode, AgentState, Secret};
// Exit codes are already available
assert_eq!(ExitCode::Success as i32, 0);
assert_eq!(ExitCode::UsageConfigError as i32, 64);
// Agent states
assert_eq!(AgentState::Running.to_string(), "running");
// Secret wrapper (available now)
let password = Secret::new("my-secret-password");
println!("{}", password); // [REDACTED]
println!("{}", password.reveal()); // my-secret-password
This SDK implements the baqup Agent Contract Specification:
| Section | Feature |
|---|---|
| §1 Lifecycle | State machine, signal handling |
| §2 Config | Environment variable loading |
| §3 Communication | Redis protocol, fallback |
| §4 Output | Atomic completion, manifests |
| §5 Errors | Exit code taxonomy |
| §6 Observability | Structured logging |
| §7 Security | Path validation, secrets |
default - Synchronous API onlyasync - Async support with Tokio and Redis[dependencies]
baqup-agent = { version = "0.0.1", features = ["async"] }
| Crate | Description |
|---|---|
baqup-schema |
Schema validation |
baqup-agent |
Agent SDK (this crate) |
Fair Source License - see LICENSE for details.