trifid/dnapi-rs/src/lib.rs

32 lines
1.1 KiB
Rust
Raw Normal View History

2023-03-29 15:18:33 +00:00
//! # dnapi-rs
//! **dnapi-rs** is a Rust-native crate for interacting with the Defined Networking client API. It is a direct port of `dnapi`, an officially maintained API client by Defined Networking.
//!
//! This crate is maintained as a part of the trifid project. Check out the other crates in [the git repository](https://git.e3t.cc/~core/trifid).
#![warn(clippy::pedantic)]
#![warn(clippy::nursery)]
#![deny(clippy::unwrap_used)]
#![deny(clippy::expect_used)]
#![deny(missing_docs)]
#![deny(clippy::missing_errors_doc)]
#![deny(clippy::missing_panics_doc)]
#![deny(clippy::missing_safety_doc)]
#![allow(clippy::must_use_candidate)]
#![allow(clippy::too_many_lines)]
#![allow(clippy::module_name_repetitions)]
2023-03-29 18:31:07 +00:00
#[cfg(all(feature = "blocking", feature = "async"))]
compile_error!("Cannot compile with both blocking and async features at the same time. Please pick one or the other.");
2023-03-29 15:18:33 +00:00
pub mod message;
2023-03-29 18:31:07 +00:00
#[cfg(feature = "blocking")]
#[path = "client_blocking.rs"]
2023-03-29 15:18:33 +00:00
pub mod client;
2023-03-29 18:31:07 +00:00
#[cfg(feature = "async")]
#[path = "client_async.rs"]
pub mod client;
2023-03-29 17:13:50 +00:00
pub mod credentials;
pub mod crypto;