chore: make async-trait optional (#1119)

This commit is contained in:
Dale Seo 2026-08-05 10:19:45 -04:00 • committed by GitHub
commit f8f9607d0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,7 +45,7 @@ features = [
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
async-trait = "0.1.89"
async-trait = { version = "0.1.89", optional = true }
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = "1.0"
thiserror = "2"
@ -187,11 +187,12 @@ transport-streamable-http-server = [
]
transport-streamable-http-server-session = [
"transport-async-rw",
"dep:async-trait",
"dep:tokio-stream",
]
# transport-ws = ["transport-io", "dep:tokio-tungstenite"]
tower = ["dep:tower-service"]
auth = ["dep:oauth2", "__reqwest", "dep:url"]
auth = ["dep:async-trait", "dep:oauth2", "__reqwest", "dep:url"]
auth-client-credentials-jwt = ["auth", "dep:jsonwebtoken", "uuid"]
schemars = ["dep:schemars"]