Skip to main content

transitous_core/
lib.rs

1//! Core of the `transitous` CLI and MCP server: configuration, the usage
2//! rules of the Transitous API, stop resolution and the status of
3//! connections.
4//!
5//! Transitous is run by volunteers. [`Transitous`] keeps to its usage rules
6//! (<https://transitous.org/api/>): every request names a contact in the
7//! User-Agent, answers are cached, requests are counted and limited, and
8//! nothing is retried.
9
10pub mod agent;
11pub mod cache;
12pub mod config;
13pub mod dirs;
14mod error;
15pub mod model;
16pub mod resolve;
17pub mod service;
18pub mod status;
19pub mod usage;
20
21pub use config::Config;
22pub use error::Error;
23pub use service::{DeparturesQuery, StopsQuery, Transitous, TripQuery};
24pub use status::Status;