diff --git a/poem-dbsession/Cargo.toml b/poem-dbsession/Cargo.toml index 6d2bfc4047..d27976c6e5 100644 --- a/poem-dbsession/Cargo.toml +++ b/poem-dbsession/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "poem-dbsession" -version = "0.3.28" +version = "0.3.29" authors = ["sunli "] edition = "2021" description = "Session storage with database for Poem." @@ -25,30 +25,12 @@ features = ["__sqlx-native-tls"] [features] default = [] -sqlx-mysql-native-tls = [ - "sqlx/mysql", - "sqlx/runtime-tokio-native-tls" -] -sqlx-mysql-rustls = [ - "sqlx/mysql", - "sqlx/runtime-tokio-rustls" -] -sqlx-postgres-native-tls = [ - "sqlx/postgres", - "sqlx/runtime-tokio-native-tls" -] -sqlx-postgres-rustls = [ - "sqlx/postgres", - "sqlx/runtime-tokio-rustls" -] -sqlx-sqlite-native-tls = [ - "sqlx/sqlite", - "sqlx/runtime-tokio-native-tls" -] -sqlx-sqlite-rustls = [ - "sqlx/sqlite", - "sqlx/runtime-tokio-rustls" -] +sqlx-mysql-native-tls = ["sqlx/mysql", "sqlx/runtime-tokio-native-tls"] +sqlx-mysql-rustls = ["sqlx/mysql", "sqlx/runtime-tokio-rustls"] +sqlx-postgres-native-tls = ["sqlx/postgres", "sqlx/runtime-tokio-native-tls"] +sqlx-postgres-rustls = ["sqlx/postgres", "sqlx/runtime-tokio-rustls"] +sqlx-sqlite-native-tls = ["sqlx/sqlite", "sqlx/runtime-tokio-native-tls"] +sqlx-sqlite-rustls = ["sqlx/sqlite", "sqlx/runtime-tokio-rustls"] # Don't use the following features, just for testing. __sqlx-native-tls = [ @@ -63,7 +45,7 @@ __sqlx-rustls = [ ] [dependencies] -poem = { path = "../poem", version = "1.3.28", features = ["session"] } +poem = { path = "../poem", version = "1.3.29", features = ["session"] } chrono = "0.4.19" serde_json = "1.0.73" diff --git a/poem-derive/Cargo.toml b/poem-derive/Cargo.toml index 9bbaa3e8ae..fbaaa8489d 100644 --- a/poem-derive/Cargo.toml +++ b/poem-derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "poem-derive" -version = "1.3.28" +version = "1.3.29" authors = ["sunli "] edition = "2021" description = "Macros for poem" diff --git a/poem-lambda/Cargo.toml b/poem-lambda/Cargo.toml index 8e8b4eff62..8b94f54e31 100644 --- a/poem-lambda/Cargo.toml +++ b/poem-lambda/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "poem-lambda" -version = "1.3.28" +version = "1.3.29" authors = ["sunli "] edition = "2021" description = "Poem for AWS Lambda" @@ -17,7 +17,7 @@ categories = [ ] [dependencies] -poem = { path = "../poem", version = "1.3.28", default-features = false } +poem = { path = "../poem", version = "1.3.29", default-features = false } lambda_http = { version = "0.5.1" } diff --git a/poem-openapi-derive/Cargo.toml b/poem-openapi-derive/Cargo.toml index 46d51fe489..439a537e1f 100644 --- a/poem-openapi-derive/Cargo.toml +++ b/poem-openapi-derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "poem-openapi-derive" -version = "1.3.28" +version = "1.3.29" authors = ["sunli "] edition = "2021" description = "Macros for poem-openapi" diff --git a/poem-openapi/Cargo.toml b/poem-openapi/Cargo.toml index b8da752733..f74a402237 100644 --- a/poem-openapi/Cargo.toml +++ b/poem-openapi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "poem-openapi" -version = "1.3.28" +version = "1.3.29" authors = ["sunli "] edition = "2021" description = "OpenAPI support for Poem." @@ -10,10 +10,7 @@ documentation = "https://docs.rs/poem/" homepage = "https://github.com/poem-web/poem" repository = "https://github.com/poem-web/poem" keywords = ["http", "async", "openapi", "swagger"] -categories = [ - "network-programming", - "asynchronous", -] +categories = ["network-programming", "asynchronous"] [features] swagger-ui = [] @@ -24,8 +21,13 @@ hostname = ["hostname-validator"] static-files = ["poem/static-files"] [dependencies] -poem-openapi-derive = { path = "../poem-openapi-derive", version = "1.3.28" } -poem = { path = "../poem", version = "1.3.28", features = ["multipart", "tempfile", "cookie", "sse"] } +poem-openapi-derive = { path = "../poem-openapi-derive", version = "1.3.29" } +poem = { path = "../poem", version = "1.3.29", features = [ + "multipart", + "tempfile", + "cookie", + "sse", +] } tokio = { version = "1.17.0", features = ["fs"] } serde_json = "1.0.68" @@ -53,7 +55,7 @@ rust_decimal = { version = "1.22.0", optional = true } [dev-dependencies] tokio = { version = "1.17.0", features = ["macros", "rt-multi-thread"] } -poem = { path = "../poem", version = "1.3.28", features = ["test"] } +poem = { path = "../poem", version = "1.3.29", features = ["test"] } [package.metadata.docs.rs] all-features = true diff --git a/poem/Cargo.toml b/poem/Cargo.toml index cd6027c18f..9179052fd9 100644 --- a/poem/Cargo.toml +++ b/poem/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "poem" -version = "1.3.28" +version = "1.3.29" authors = ["sunli "] edition = "2021" description = "Poem is a full-featured and easy-to-use web framework with the Rust programming language." @@ -31,17 +31,37 @@ tower-compat = ["tokio/rt", "tower"] cookie = ["libcookie", "chrono", "time"] session = ["tokio/rt", "cookie", "rand", "priority-queue"] redis-session = ["session", "redis"] -opentelemetry = ["libopentelemetry", "opentelemetry-http", "opentelemetry-semantic-conventions"] +opentelemetry = [ + "libopentelemetry", + "opentelemetry-http", + "opentelemetry-semantic-conventions", +] prometheus = ["libopentelemetry", "opentelemetry-prometheus", "libprometheus"] tempfile = ["libtempfile", "tokio/fs"] csrf = ["cookie", "base64", "libcsrf"] test = ["sse", "sse-codec", "tokio-util/compat"] -i18n = ["fluent", "fluent-langneg", "fluent-syntax", "unic-langid", "intl-memoizer"] -acme = ["server", "hyper/client", "rustls", "ring", "hyper-rustls", "base64", "rcgen", "x509-parser", "chrono"] +i18n = [ + "fluent", + "fluent-langneg", + "fluent-syntax", + "unic-langid", + "intl-memoizer", +] +acme = [ + "server", + "hyper/client", + "rustls", + "ring", + "hyper-rustls", + "base64", + "rcgen", + "x509-parser", + "chrono", +] embed = ["rust-embed", "hex", "mime_guess"] [dependencies] -poem-derive = { path = "../poem-derive", version = "1.3.28" } +poem-derive = { path = "../poem-derive", version = "1.3.29" } async-trait = "0.1.51" bytes = "1.1.0" @@ -68,21 +88,41 @@ multer = { version = "2.0.1", features = ["tokio"], optional = true } tokio-tungstenite = { version = "0.17.1", optional = true } tokio-rustls = { version = "0.23.2", optional = true } rustls-pemfile = { version = "1.0.0", optional = true } -async-compression = { version = "0.3.8", optional = true, features = ["tokio", "gzip", "brotli", "deflate"] } -tower = { version = "0.4.8", optional = true, default-features = true, features = ["util", "buffer"] } +async-compression = { version = "0.3.8", optional = true, features = [ + "tokio", + "gzip", + "brotli", + "deflate", +] } +tower = { version = "0.4.8", optional = true, default-features = true, features = [ + "util", + "buffer", +] } chrono = { version = "0.4.19", optional = true } time = { version = "0.3", optional = true } -mime = { version = "0.3.16"} +mime = { version = "0.3.16" } mime_guess = { version = "2.0.3", optional = true } typed-headers = { version = "0.2.0", optional = true } rand = { version = "0.8.4", optional = true } -redis = { version = "0.21.2", optional = true, features = ["aio", "tokio-comp", "connection-manager"] } -libcookie = { package = "cookie", version = "0.16", features = ["percent-encode", "private", "signed", "key-expansion", "secure"], optional = true } +redis = { version = "0.21.2", optional = true, features = [ + "aio", + "tokio-comp", + "connection-manager", +] } +libcookie = { package = "cookie", version = "0.16", features = [ + "percent-encode", + "private", + "signed", + "key-expansion", + "secure", +], optional = true } opentelemetry-http = { version = "0.6.0", optional = true } opentelemetry-semantic-conventions = { version = "0.9.0", optional = true } opentelemetry-prometheus = { version = "0.10.0", optional = true } libprometheus = { package = "prometheus", version = "0.13.0", optional = true } -libopentelemetry = { package = "opentelemetry", version = "0.17.0", features = ["metrics"], optional = true } +libopentelemetry = { package = "opentelemetry", version = "0.17.0", features = [ + "metrics", +], optional = true } libtempfile = { package = "tempfile", version = "3.2.0", optional = true } priority-queue = { version = "1.2.0", optional = true } tokio-native-tls = { version = "0.3.0", optional = true }