Skip to main content

udptk/
lib.rs

1//! UDP toolkit
2//!
3//! This crate provides an easy-to-use API for sending and listening to UDP
4//! packets. It provides a high-level interface and does not expose any low-level
5//! details, such as sockets or packet headers.
6
7// rustc
8#![cfg_attr(debug_assertions, allow(unused))]
9#![cfg_attr(not(debug_assertions), deny(missing_docs))]
10#![cfg_attr(not(debug_assertions), deny(clippy::unwrap_used))]
11#![cfg_attr(not(debug_assertions), deny(warnings))]
12// clippy
13#![cfg_attr(not(debug_assertions), deny(clippy::todo))]
14#![cfg_attr(
15    not(any(test, debug_assertions)),
16    deny(clippy::print_stdout, clippy::dbg_macro)
17)]
18
19mod error;
20mod listen;
21mod send;
22
23pub use error::{Error, Result};
24pub use listen::listen;
25pub use send::send;