Skip to main content

grabcli_core/
lib.rs

1//! Shared core for grabcli: the parts every Grab service reuses — config,
2//! session, auth/hydra, the allowlisted HTTP client, the read-only response
3//! cache, money and output helpers.
4//!
5//! Service crates (e.g. `grabfood`) depend on this, register their URL
6//! allowlist, and make calls through [`ctx::Context`].
7
8pub mod cache;
9pub mod cdp;
10pub mod config;
11pub mod ctx;
12pub mod error;
13pub mod http;
14pub mod hydra;
15pub mod jwt;
16pub mod location;
17pub mod login;
18pub mod money;
19pub mod output;
20pub mod paths;
21pub mod places;
22pub mod session;
23pub mod sso;
24
25pub use cache::{Cache, CacheKey, CacheKind, CacheMode, Fetched};
26pub use config::Config;
27pub use ctx::Context;
28pub use error::{Error, ErrorKind, Result};
29pub use http::{Allowlist, Client, Hydra, Request};
30pub use location::Location;
31pub use money::Money;
32pub use output::{Format, Output};
33pub use session::Session;