diff --git a/axum-core/Cargo.toml b/axum-core/Cargo.toml index 17de5af997..e604fa0526 100644 --- a/axum-core/Cargo.toml +++ b/axum-core/Cargo.toml @@ -47,11 +47,14 @@ tower-http = { version = "0.5.0", features = ["limit"] } [package.metadata.cargo-public-api-crates] allowed = [ + # not 1.0 "futures_core", - "http", + "tower_layer", + + # >=1.0 "bytes", + "http", "http_body", - "tower_layer", ] [package.metadata.docs.rs] diff --git a/axum/Cargo.toml b/axum/Cargo.toml index f05f5370a8..de388dddf1 100644 --- a/axum/Cargo.toml +++ b/axum/Cargo.toml @@ -179,19 +179,24 @@ features = [ [package.metadata.cargo-public-api-crates] allowed = [ - "async_trait", + # our crates "axum_core", "axum_macros", - "bytes", + + # not 1.0 "futures_core", "futures_sink", "futures_util", + "tower_layer", + "tower_service", + + # >=1.0 + "async_trait", + "bytes", "http", "http_body", "serde", "tokio", - "tower_layer", - "tower_service", ] [[bench]]