mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-15 00:00:20 +02:00
* Remove unused attribute in axum-core * Fix docs.rs package metadata for axum-extra
63 lines
1.7 KiB
Rust
63 lines
1.7 KiB
Rust
//! Core types and traits for [`axum`].
|
|
//!
|
|
//! Libraries authors that want to provide [`FromRequest`] or [`IntoResponse`] implementations
|
|
//! should depend on the [`axum-core`] crate, instead of `axum` if possible.
|
|
//!
|
|
//! [`FromRequest`]: crate::extract::FromRequest
|
|
//! [`IntoResponse`]: crate::response::IntoResponse
|
|
//! [`axum`]: https://crates.io/crates/axum
|
|
//! [`axum-core`]: http://crates.io/crates/axum-core
|
|
|
|
#![warn(
|
|
clippy::all,
|
|
clippy::dbg_macro,
|
|
clippy::todo,
|
|
clippy::empty_enum,
|
|
clippy::enum_glob_use,
|
|
clippy::mem_forget,
|
|
clippy::unused_self,
|
|
clippy::filter_map_next,
|
|
clippy::needless_continue,
|
|
clippy::needless_borrow,
|
|
clippy::match_wildcard_for_single_variants,
|
|
clippy::if_let_mutex,
|
|
clippy::mismatched_target_os,
|
|
clippy::await_holding_lock,
|
|
clippy::match_on_vec_items,
|
|
clippy::imprecise_flops,
|
|
clippy::suboptimal_flops,
|
|
clippy::lossy_float_literal,
|
|
clippy::rest_pat_in_fully_bound_structs,
|
|
clippy::fn_params_excessive_bools,
|
|
clippy::exit,
|
|
clippy::inefficient_to_string,
|
|
clippy::linkedlist,
|
|
clippy::macro_use_imports,
|
|
clippy::option_option,
|
|
clippy::verbose_file_reads,
|
|
clippy::unnested_or_patterns,
|
|
clippy::str_to_string,
|
|
rust_2018_idioms,
|
|
future_incompatible,
|
|
nonstandard_style,
|
|
missing_debug_implementations,
|
|
missing_docs
|
|
)]
|
|
#![deny(unreachable_pub, private_in_public)]
|
|
#![allow(elided_lifetimes_in_paths, clippy::type_complexity)]
|
|
#![forbid(unsafe_code)]
|
|
#![cfg_attr(test, allow(clippy::float_cmp))]
|
|
|
|
#[macro_use]
|
|
pub(crate) mod macros;
|
|
|
|
mod error;
|
|
pub use self::error::Error;
|
|
|
|
pub mod body;
|
|
pub mod extract;
|
|
pub mod response;
|
|
|
|
/// Alias for a type-erased error type.
|
|
pub type BoxError = Box<dyn std::error::Error + Send + Sync>;
|