thunderstore_engine/
lib.rs1#![cfg_attr(feature = "io", doc = include_str!("../README.md"))]
3#![cfg_attr(
4 not(feature = "io"),
5 doc = "Game-agnostic Thunderstore engine, built without the `io` feature: the data models, dependency resolver, game definitions, plan types, pure planners, and pure queries. See the crate README for the full feature list."
6)]
7#![cfg_attr(docsrs, feature(doc_cfg))]
8#![forbid(unsafe_code)]
9
10#[cfg(all(
11 feature = "io",
12 not(any(feature = "rustls-tls", feature = "native-tls"))
13))]
14compile_error!(
15 "thunderstore-engine requires exactly one TLS backend: enable rustls-tls (default) or native-tls"
16);
17
18#[cfg(all(feature = "rustls-tls", feature = "native-tls"))]
19compile_error!(
20 "thunderstore-engine: enable only one TLS backend, rustls-tls OR native-tls, not both"
21);
22
23#[cfg(feature = "io")]
25pub mod client;
26pub mod ecosystem;
28pub mod error;
30pub mod extract;
32pub mod install;
34pub(crate) mod intern;
36pub mod manifest;
38pub mod models;
40pub mod profile;
42pub mod progress;
44pub mod query;
46pub mod resolve;
48mod retry;
50pub mod steam;
52#[cfg(feature = "test-support")]
54pub mod test_support;
55pub(crate) mod util;
57
58pub use error::{Error, Result};
59pub use progress::{NoopProgress, ProgressHandle, ProgressReporter};
60pub use retry::RetryPolicy;