Skip to content

Commit

Permalink
Note which crates in our public API are 1.0
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
davidpdrsn committed Nov 27, 2023
1 parent 9d0e634 commit 89bba94
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
7 changes: 5 additions & 2 deletions axum-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
13 changes: 9 additions & 4 deletions axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down

0 comments on commit 89bba94

Please sign in to comment.