rusteero 3.0.1

Async Rust client for the Eero (Amazon) mesh Wi-Fi cloud API — a port of the Python eero-api library
Documentation
//! # rusteero
//!
//! Async Rust client for the Eero (Amazon) mesh Wi-Fi cloud API.
//!
//! `rusteero` is a port of the Python [`eero-api`](https://github.com/fulviofreitas/eero-api)
//! library. It keeps that library's contract: every endpoint returns the raw
//! `{"meta": …, "data": …}` JSON envelope from the Eero cloud API, method names are the same,
//! and stored credentials are wire-compatible.
//!
//! **Unofficial project.** This crate uses reverse-engineered APIs and is not affiliated with
//! or endorsed by Eero or Amazon. Accounts that sign in with Amazon cannot use the email/SMS
//! verification flow; see the project wiki for the documented workaround.
//!
//! ## Status
//!
//! Under construction. See `PARITY.md` in the repository for the per-method checklist against
//! `eero-api`.

#![forbid(unsafe_code)]

pub mod api;
pub mod auth;
pub mod cache;
pub mod client;
pub mod consts;
pub mod endpoints;
pub mod envelope;
pub mod error;
pub mod errors;
pub mod links;
pub mod params;
pub mod redact;
pub mod routes;
pub mod storage;
pub mod transport;
pub mod util;

// Crate-root re-exports, so a consumer can write `use rusteero::{EeroApi, Envelope, Error,
// Session};` without reaching into individual modules. These are additive: every module above
// stays `pub` in its own right (e.g. `rusteero::auth::Session` and `rusteero::endpoints::*`
// still work) — nothing here is hidden behind the flat re-export surface.
pub use api::EeroApi;
pub use auth::Session;
pub use client::{Client, ClientBuilder};
pub use envelope::{Envelope, Meta};
pub use error::{Error, StorageError};
pub use errors::{ErrorGroup, classify_error_code};
pub use links::{
    join_api_path, resolve_link, resource_url, rewrite_version, self_url, sub_resource_url,
};
#[cfg(feature = "keyring")]
pub use storage::KeyringStore;
pub use storage::{ChainedStore, CredentialStore, FileStore, MemoryStore};
pub use transport::RequestTimeout;

/// Crate version, as compiled from `Cargo.toml`.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

#[cfg(test)]
mod tests {
    #[test]
    fn version_is_semver_like() {
        assert_eq!(super::VERSION.split('.').count(), 3);
    }
}