Skip to main content

docsrs_cli/domain/
mod.rs

1//! Domain newtypes: parse at the boundary, carry validity in the type.
2//!
3//! Follows parse-don't-validate: only fallible constructors build values.
4//! Core path APIs take these types by reference so the compiler keeps the proof
5//! (see `docs/decisions/0006-type-system-posture.md` and
6//! `docs/decisions/0008-domain-types-posture.md` for url-only of the four
7//! generic domain crates — no chrono/uuid/rust_decimal).
8//!
9//! # Naming note
10//!
11//! Product commands such as `get-item` and HTTP helpers such as `get_json` /
12//! `get_html` use the verb **get** for the operation, not as a field getter
13//! (`name()` not `get_name()`).
14
15mod crate_name;
16mod crate_ref;
17mod item_path;
18mod match_mode;
19mod origin;
20mod regex;
21mod search_query;
22mod version;
23
24pub use crate_name::{CrateName, is_stdlib_name};
25pub use crate_ref::CrateRef;
26pub use item_path::ItemPath;
27pub use match_mode::MatchMode;
28pub use origin::AllowedOrigin;
29pub(crate) use regex::compile_bounded_regex;
30pub use search_query::SearchQuery;
31pub use version::VersionArg;