Skip to content

Commit

Permalink
port rack/query_parser
Browse files Browse the repository at this point in the history
  • Loading branch information
cpunion committed Dec 30, 2024
1 parent 255e51a commit c3b0a6a
Show file tree
Hide file tree
Showing 9 changed files with 982 additions and 592 deletions.
9 changes: 9 additions & 0 deletions Cargo.lock

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

10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ categories = ["web-programming"]
[dependencies]
actson = "1.1.0"
async-trait = "0.1.83"
axum = { version = "0.7.9", features = ["multipart", "macros"] }
axum = { version = "0.7", features = ["multipart", "macros"] }
axum-macros = "0.4.2"
form_urlencoded = "1.2.1"
log = "0.4.20"
mime = "0.3.17"
multer = "3.0.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.134"
serde_urlencoded = "0.7.1"
tempfile = "3.8.1"
tokio = { version = "1.34.0", features = ["full"] }
Expand All @@ -26,6 +28,8 @@ url = "2.5.4"
axum-test = "16.4.1"
env_logger = "0.11.6"
futures-util = "0.3.29"
maplit = "1.0.2"
pretty_assertions = "1.4.0"
serde_json = "1.0.134"

[[example]]
Expand All @@ -39,3 +43,7 @@ path = "examples/file_upload.rs"
[[example]]
name = "nested_params"
path = "examples/nested_params.rs"

[[example]]
name = "test_params"
path = "examples/test_params.rs"
5 changes: 1 addition & 4 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ pub enum Error {
DecodeError(String),
ReadError(String),
IOError(String),
InvalidRequest,
InvalidParams,
InvalidPath,
InvalidFile,
MergeError(String),
}

impl IntoResponse for Error {
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mod error;
mod params;
pub mod query_parser;
mod serde;
#[cfg(test)]
mod tests;
Expand All @@ -9,6 +10,7 @@ mod value;

pub use error::*;
pub use params::*;
pub use query_parser::*;
pub use serde::*;
pub use traits::*;
pub use upload_file::*;
Expand Down
Loading

0 comments on commit c3b0a6a

Please sign in to comment.