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 | 7 +++++-- axum/Cargo.toml | 13 +++++++++---- 2 files changed, 14 insertions(+), 6 deletions(-) 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]]