Skip to content

Commit

Permalink
chore(deps): upgrade Rust crate axum to 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
spotlightishere committed Jan 4, 2025
1 parent a23a0de commit d9fb976
Show file tree
Hide file tree
Showing 9 changed files with 183 additions and 127 deletions.
281 changes: 171 additions & 110 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ repository = "https://github.com/charted-dev/charted"

[workspace.dependencies]
argon2 = "0.5.3"
axum = { version = "0.7.7", features = ["macros", "http2"] }
axum = { version = "0.8.1", features = ["macros", "http2"] }
charted-core = { version = "0.1.0", path = "./crates/core", default-features = false }
charted-database = { version = "0.1.0", path = "./crates/database" }
charted-types = { version = "0.1.0", path = "./crates/types", default-features = false }
Expand Down
2 changes: 0 additions & 2 deletions crates/server/src/extract/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use async_trait::async_trait;
use axum::{
body::Bytes,
extract::{self, FromRequest},
Expand All @@ -33,7 +32,6 @@ charted_core::create_newtype_wrapper! {
pub Json<T> for pub T;
}

#[async_trait]
impl<T: DeserializeOwned, S: Send + Sync> FromRequest<S> for Json<T> {
type Rejection = api::Response;

Expand Down
1 change: 0 additions & 1 deletion crates/server/src/extract/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ charted_core::create_newtype_wrapper! {
pub Path<T> for pub T;
}

#[async_trait::async_trait]
impl<S: Send + Sync, T: DeserializeOwned + Send + Sync> FromRequestParts<S> for Path<T> {
type Rejection = api::Response;

Expand Down
1 change: 0 additions & 1 deletion crates/server/src/extract/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ charted_core::create_newtype_wrapper! {
pub Query<T> for pub T;
}

#[async_trait::async_trait]
impl<S: Send + Sync, T: DeserializeOwned> FromRequestParts<S> for Query<T> {
type Rejection = api::Response;

Expand Down
1 change: 0 additions & 1 deletion crates/server/src/multipart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ impl DerefMut for Multipart {
}
}

#[async_trait::async_trait]
impl<S: Send + Sync> FromRequest<S> for Multipart {
type Rejection = Rejection;

Expand Down
2 changes: 1 addition & 1 deletion crates/server/src/routing/v1/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl Entrypoint {
pub fn create_router(cx: &ServerContext) -> Router<ServerContext> {
let mut router = Router::new()
.nest("/users", user::create_router())
.route("/indexes/:idOrName", routing::get(index::get_chart_index))
.route("/indexes/{idOrName}", routing::get(index::get_chart_index))
.route("/heartbeat", routing::get(heartbeat::heartbeat))
.route("/openapi.json", routing::get(openapi::openapi))
.route("/info", routing::get(info::info))
Expand Down
2 changes: 1 addition & 1 deletion crates/server/src/routing/v1/user/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub fn create_router() -> Router<ServerContext> {
Router::new()
.route("/", routing::get(main).put(create_user))
.nest("/@me", at_me)
.nest("/:idOrName", id_or_name)
.nest("/{idOrName}", id_or_name)
}

/// Entrypoint to the Users API.
Expand Down
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d9fb976

Please sign in to comment.