Medius - Rust LibraryIntroduction

Medius Rust Library

Official Rust client

The medius crate injects input on top of a real mouse, keyboard, or combo over a USB-serial link.

PropertyValue
Crate version3.0.0
Edition2024
MSRV (minimum supported Rust version)1.85
LicenseMIT
Transport4 Mbaud, framed-only
Thread safetySend + Sync (clone freely)
Safety#![forbid(unsafe_code)]

Installation

cargo add medius

With optional features:

cargo add medius --features async,mock
FeatureDescription
asyncRuntime-agnostic AsyncDevice, async queries.
mockIn-process fake box for tests.
flashesptool firmware flashing.
tracingTracing instrumentation across the connection lifecycle.