Skip to main content

openeruka_client/
lib.rs

1//! # openeruka-client
2//!
3//! Typed async HTTP client for a hosted [Eruka](https://eruka.dirmacs.com) instance.
4//!
5//! ## Quick start
6//!
7//! ```rust,no_run
8//! use openeruka_client::ErukaClient;
9//!
10//! #[tokio::main]
11//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
12//!     let client = ErukaClient::new(
13//!         "https://eruka.dirmacs.com",
14//!         &std::env::var("ERUKA_API_KEY").unwrap(),
15//!     );
16//!
17//!     let field = client
18//!         .get_field("my-workspace-id", "identity/company_name")
19//!         .await?;
20//!
21//!     if let Some(f) = field {
22//!         println!("Company: {:?}", f.value);
23//!     }
24//!     Ok(())
25//! }
26//! ```
27
28pub mod client;
29pub mod error;
30
31pub use client::ErukaClient;
32pub use error::ClientError;