1use anyhow::{anyhow, Result};
2
3pub mod api;
4pub mod pipeline;
5pub mod proxy;
6
7pub use tokn_accounts as accounts;
8pub use tokn_config as config;
9pub use tokn_convert as convert;
10pub use tokn_core::{db, provider, util};
11
12pub fn proxy_intercept_hosts() -> &'static [&'static str] {
17 proxy::INTERCEPT_HOSTS
18}
19
20pub fn install_rustls_crypto_provider() -> Result<()> {
21 rustls::crypto::ring::default_provider()
22 .install_default()
23 .map_err(|_| anyhow!("failed to install rustls ring crypto provider"))?;
24 Ok(())
25}