Implement Serialize, Deserialize and TryFromMultipart for Username/Password

Enable the axum feature to use it
This commit is contained in:
selfhoster selfhoster 2023-08-22 16:51:52 +02:00
commit 4eb3ac6350
3 changed files with 68 additions and 7 deletions

View file

@ -15,7 +15,13 @@ serde = { version = "1", features = [ "derive" ] }
serde_json = "1"
regex = "1.9"
url = "2.4"
futures-util = { version = "0.3", optional = true }
axum = { version = "0.6", optional = true }
axum_typed_multipart = { version = "0.8", optional = true }
[dev-dependencies]
scan-rules = "0.2"
tokio = { version = "1", features = [ "sync", "rt" ] }
[features]
axum = [ "dep:futures-util", "dep:axum", "dep:axum_typed_multipart" ]