Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utoipa-axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ utoipa = { version = "5.0.0", path = "../utoipa", default-features = false, feat
] }
tower-service = "0.3"
tower-layer = "0.3.2"
paste = "1.0"
pastey = "0.1.1"

[dev-dependencies]
utoipa = { path = "../utoipa", features = ["debug"] }
Expand Down
2 changes: 1 addition & 1 deletion utoipa-axum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl PathItemExt for HttpMethod {

/// re-export paste so users do not need to add the dependency.
#[doc(hidden)]
pub use paste::paste;
pub use pastey::paste;

/// Collect axum handlers annotated with [`utoipa::path`] to [`router::UtoipaMethodRouter`].
///
Expand Down
2 changes: 1 addition & 1 deletion utoipa-gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ axum = { version = "0.8.0", default-features = false, features = [
"json",
"query",
] }
paste = "1"
pastey = "0.1.1"
rocket = { version = "0.5", features = ["json"] }
smallvec = { version = "1.10", features = ["serde"] }
rust_decimal = { version = "1", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion utoipa-gen/tests/path_derive.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::collections::BTreeMap;

use insta::assert_json_snapshot;
use paste::paste;
use pastey::paste;
use serde::Serialize;
use serde_json::{json, Value};
use std::collections::HashMap;
Expand Down
4 changes: 2 additions & 2 deletions utoipa-gen/tests/path_response_derive_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ macro_rules! test_response_types {
( $( $name:ident=> $(body: $expected:expr,)? $( $content_type:literal, )? $( headers: $headers:expr, )?
assert: $( $path:literal = $expectation:literal, $comment:literal )* )* ) => {
$(
paste::paste! {
pastey::paste! {
test_fn! {
module: [<mod_ $name>],
responses: (
Expand All @@ -154,7 +154,7 @@ macro_rules! test_response_types {

#[test]
fn $name() {
paste::paste! {
pastey::paste! {
let doc = api_doc!(module: [<mod_ $name>]);
}

Expand Down