bambu_rs/lib.rs
1//! `bambu-rs` — a clean-room library and CLI for monitoring and controlling
2//! [Bambu Lab](https://bambulab.com/) 3D printers over the LAN.
3//!
4//! This crate is built **clean-room** from the protocol documentation
5//! ([OpenBambuAPI](https://github.com/Doridian/OpenBambuAPI)) and direct
6//! observation of real hardware — it does not depend on, nor copy from, any
7//! existing Bambu library implementation.
8//!
9//! The library ([`core`]) is the first-class, reusable artifact: it owns the
10//! pure protocol logic (state model, delta merge, command envelopes, the
11//! firmware capability registry, the safety policy and `verify` predicates)
12//! with **no I/O**. The `bambu` binary is a thin consumer of this library, and
13//! a future MCP server will be another.
14//!
15//! Reliable *control* requires the printer to be in **LAN-only + Developer
16//! Mode** (since the Jan-2025 Authorization Control System); read-only
17//! telemetry is broadly available.
18
19pub mod camera;
20pub mod captures;
21#[cfg(feature = "cli")]
22pub mod cli;
23pub mod client;
24pub mod config;
25pub mod core;
26pub mod ftp;
27pub mod park;
28#[cfg(feature = "server")]
29pub mod server;
30pub mod tls;