mitoxide-proto

Crates.iomitoxide-proto
lib.rsmitoxide-proto
version0.1.0
created_at2025-10-16 15:56:21.200677+00
updated_at2025-10-16 15:56:21.200677+00
descriptionProtocol definitions and codec for Mitoxide
homepagehttps://github.com/yourusername/mitoxide
repositoryhttps://github.com/yourusername/mitoxide
max_upload_size
id1886347
size66,879
Sebx (Sebx)

documentation

https://docs.rs/mitoxide-proto

README

Mitoxide Proto

Crates.io Documentation License: MIT

Protocol definitions and codec for Mitoxide - a fast Rust library for remote execution and automation.

Features

  • Efficient binary protocol with MessagePack
  • Frame-based communication
  • Request/response correlation
  • Stream multiplexing support
  • Zero-copy serialization where possible

Usage

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);

Documentation

License

This project is licensed under the MIT License.

Commit count: 0

cargo fmt