areev 0.0.0

Rust SDK for the Areev knowledge database — gRPC and HTTP transports
Documentation
//! Areev Rust SDK — client library for the Areev knowledge database.
//!
//! # Transports
//!
//! - **HTTP** (default): `HttpClient::new("http://localhost:4009", "default", Some("api-key"))`
//! - **gRPC** (feature `grpc`): `GrpcClient::connect("http://localhost:4010").await`

mod error;
mod types;

#[cfg(feature = "grpc")]
mod grpc;
#[cfg(feature = "grpc")]
mod pb {
    tonic::include_proto!("areev.v1");
}

#[cfg(feature = "http")]
mod http;
#[cfg(feature = "http")]
mod client;

pub use error::AreevError;
pub use types::*;

#[cfg(feature = "grpc")]
pub use grpc::GrpcClient;
#[cfg(feature = "http")]
pub use http::HttpClient;
#[cfg(feature = "http")]
pub use client::Areev;