Skip to main content

cleanlib_client/
lib.rs

1// CleanLibrary shared client library — HTTP / auth / telemetry surface
2// shared between Rust CLI (cleanlib-cli) and any other Rust consumers.
3// Telemetry transport impl lands in subsequent CLEANLIB-N PRs per Client
4// spec rev1 §7.
5
6pub mod config;
7pub mod derive_status;
8pub mod envelope;
9pub mod errors;
10pub mod proxy;
11pub mod risk_acceptance;
12pub mod transport;
13pub mod types;
14
15// Re-exports — load-bearing surface for sibling-crate consumers (cleanlib-cli,
16// cleanlib-app integration tests) so they import via `cleanlib_client::*`
17// without reaching into module paths.
18pub use derive_status::{derive_status, DerivedStatus};
19pub use envelope::{ReasonCode, Status, VerdictEnvelopeV1, ALL_REASON_CODES};
20
21// CLEANLIB-126 M1″ — extern-consumer surface re-exports (cycle-13).
22// Per cycle-13 R5-Lane-2 F2: third-party consumers importing
23// `cleanlib_client::{Client, Verdict, PolicyDecision}` previously hit
24// `error[E0432]: unresolved imports` because the types lived behind
25// module paths. Re-export at crate-root so the public API matches the
26// documented surface (cf. docs-site SDK-Rust.md customer page).
27pub use transport::Client;
28pub use types::{PolicyDecision, PreviousVerdict, Verdict};