stdiobus-backend-native
Native FFI backend for stdio_bus - direct C library integration.
This crate provides a native backend that links directly to libstdio_bus.a via FFI. It offers the best performance but requires building the C library.
Installation
[]
= "1.0"
Prerequisites
Build libstdio_bus.a from the main repository:
Usage
Most users should use stdiobus-client with the native feature:
use ;
let bus = builder
.config
.backend_native
.build?;
Direct Usage
use NativeBackend;
use ;
// From programmatic config (no file needed)
let config = BusConfig ;
let backend = from_config_source?;
// From file path
let backend = new?;
backend.start.await?;
Platform Support
| Platform | Status |
|---|---|
| Linux x64/arm64 | ✓ |
| macOS x64/arm64 | ✓ |
| Windows | ✘ (use Docker backend) |
License
Apache-2.0