| Crates.io | mitoxide-proto |
| lib.rs | mitoxide-proto |
| version | 0.1.0 |
| created_at | 2025-10-16 15:56:21.200677+00 |
| updated_at | 2025-10-16 15:56:21.200677+00 |
| description | Protocol definitions and codec for Mitoxide |
| homepage | https://github.com/yourusername/mitoxide |
| repository | https://github.com/yourusername/mitoxide |
| max_upload_size | |
| id | 1886347 |
| size | 66,879 |
Protocol definitions and codec for Mitoxide - a fast Rust library for remote execution and automation.
This crate is primarily used internally by Mitoxide, but can be used standalone for custom protocol implementations.
use mitoxide_proto::{Message, Request, Response, Frame, FrameCodec};
// Create a request message
let request = Request::ProcExec {
id: uuid::Uuid::new_v4(),
command: vec!["echo".to_string(), "hello".to_string()],
env: std::collections::HashMap::new(),
timeout: None,
};
let message = Message::Request(request);
This project is licensed under the MIT License.