#![allow(dead_code)]
#![allow(clippy::type_complexity)]
#![allow(clippy::too_many_arguments)]
pub mod auth;
pub mod balancer;
pub mod circuit_breaker;
pub mod client;
pub mod convert;
pub mod error;
pub mod grpc_service;
pub mod metrics_layer;
pub mod pool;
pub mod rate_limiter;
pub mod server;
pub mod tracing_middleware;
#[cfg(feature = "mtls")]
pub mod mtls;
#[cfg(feature = "mtls")]
pub mod ocsp;
#[cfg(feature = "mtls")]
pub mod tls;
#[cfg(feature = "mtls")]
pub mod tls_crypto;
pub mod proto {
pub mod types {
#![allow(clippy::all)]
#![allow(warnings)]
include!(concat!(env!("OUT_DIR"), "/amaters.types.rs"));
}
pub mod query {
#![allow(clippy::all)]
#![allow(warnings)]
include!(concat!(env!("OUT_DIR"), "/amaters.query.rs"));
}
pub mod errors {
#![allow(clippy::all)]
#![allow(warnings)]
include!(concat!(env!("OUT_DIR"), "/amaters.errors.rs"));
}
pub mod aql {
#![allow(clippy::all)]
#![allow(warnings)]
include!(concat!(env!("OUT_DIR"), "/amaters.aql.rs"));
}
}
pub use error::{NetError, NetResult};
pub use server::{AqlServerBuilder, AqlServiceImpl, StreamConfig};
#[cfg(feature = "mtls")]
pub use mtls::{
CrlRevocationChecker, HandshakeResult, MtlsClient, MtlsClientVerifier, MtlsConfigBuilder,
MtlsServer, MtlsServerVerifier, OcspRevocationChecker, Principal, PrincipalMapper,
RevocationChecker, RevocationStatus,
};
#[cfg(feature = "mtls")]
pub use tls::{
CertificateFormat, CertificateInfo, CertificateLoader, CertificateStore,
HotReloadableCertificates, PrivateKeyLoader, PrivateKeyType, SelfSignedGenerator,
};
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub const PROTOCOL_VERSION: (u32, u32, u32) = (0, 2, 0);
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_version() {
assert!(VERSION.contains('.'), "VERSION should be semver format");
}
#[test]
fn test_protocol_version() {
assert_eq!(PROTOCOL_VERSION, (0, 2, 0));
}
}