dustnet_core/lib.rs
1#![forbid(unsafe_code)]
2// Remote content reaches every parser and protocol path in this crate, so an
3// operation that can panic on
4// out-of-range input is a denial of service even though `forbid(unsafe_code)`
5// bounds it to an abort. Denied in
6// non-test builds only: tests assert on known-good values, where `unwrap` is
7// the clearer spelling. A new panicking operation on a production path fails
8// `make ci` until it is rewritten as a checked one, or exempted here with a
9// reason.
10#![cfg_attr(
11 not(test),
12 deny(
13 clippy::indexing_slicing,
14 clippy::unwrap_used,
15 clippy::expect_used,
16 clippy::panic
17 )
18)]
19
20//! ATP/AML parsing and protocol primitives with no client or server dependency.
21
22pub mod color;
23pub mod parser;
24pub mod protocol;
25pub mod scanner;
26pub mod serialize;
27pub mod session;
28
29pub use protocol::origin::{Origin, TransportSecurity};
30pub use protocol::{NegotiatedCapabilities, ProtocolVersion};