radius_rust/
lib.rs

1//! Pure Rust implementation of RADIUS Protocol/Client/Server
2//!
3//! If you want to built RADIUS Server, a good starting point is to look inside `examples/*_radius_server.rs`
4//!
5//! If you want to build RADIUS Client, a good starting point is to look inside `examples/*_radius_client.rs`
6
7
8#![deny(
9    dead_code,
10    missing_crate_level_docs,
11    missing_doc_code_examples,
12    missing_docs,
13    rust_2018_idioms,
14    unused_imports
15)]
16
17
18pub mod client;
19pub use client::{ client::Client, SyncClientTrait };
20#[cfg(all(feature = "async-radius"))]
21pub use client::AsyncClientTrait;
22
23pub mod server;
24pub use server::{ server::Server, SyncServerTrait };
25#[cfg(all(feature = "async-radius"))]
26pub use server::AsyncServerTrait;
27
28pub mod protocol;
29pub mod tools;
30
31// Optional features
32pub mod features {
33    #![cfg_attr(feature = "async-radius",      doc = "## Async RADIUS Server/Client Enabled")]
34    #![cfg_attr(not(feature = "async-radius"), doc = "## Async RADIUS Server/Client Disabled")]
35}