From 89bba9489a3dd3f1ad5388ddcd0fa3bcea8bdabf Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Mon, 27 Nov 2023 11:53:05 +0100 Subject: [PATCH] Note which crates in our public API are 1.0 So we know at least which other crates have to 1.0 before axum can be, or which we have to remove from our public API. --- axum-core/Cargo.toml | 9 ++++++--- axum/Cargo.toml | 13 +++++++++---- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/axum-core/Cargo.toml b/axum-core/Cargo.toml index 17de5af9..e604fa05 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", - "bytes", - "http_body", "tower_layer", + + # >=1.0 + "bytes", + "http", + "http_body", ] [package.metadata.docs.rs] diff --git a/axum/Cargo.toml b/axum/Cargo.toml index f05f5370..de388ddd 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]]