Files
letro-authentication-service/crates/handlers/Cargo.toml
2022-11-09 19:17:12 +01:00

76 lines
2.2 KiB
TOML

[package]
name = "mas-handlers"
version = "0.1.0"
authors = ["Quentin Gliech <quenting@element.io>"]
edition = "2021"
license = "Apache-2.0"
[dependencies]
# Async runtime
tokio = { version = "1.21.2", features = ["macros"] }
futures-util = "0.3.25"
# Logging and tracing
tracing = "0.1.37"
# Error management
thiserror = "1.0.37"
anyhow = "1.0.66"
# Web server
hyper = { version = "0.14.22", features = ["full"] }
tower = "0.4.13"
tower-http = { version = "0.3.4", features = ["cors"] }
axum = { version = "0.6.0-rc.2", features = ["ws"] }
axum-macros = "0.3.0-rc.1"
axum-extra = { version = "0.4.0-rc.1", features = ["cookie-private"] }
async-graphql = { version = "4.0.16", features = ["tracing", "apollo_tracing"] }
# Emails
lettre = { version = "0.10.1", default-features = false, features = ["builder"] }
# Database access
sqlx = { version = "0.6.2", features = ["runtime-tokio-rustls", "postgres"] }
# Various structure (de)serialization
serde = { version = "1.0.147", features = ["derive"] }
serde_with = { version = "2.0.1", features = ["hex", "chrono"] }
serde_json = "1.0.87"
serde_urlencoded = "0.7.1"
# Password hashing
argon2 = { version = "0.4.1", features = ["password-hash"] }
# Various data types and utilities
chrono = { version = "0.4.22", features = ["serde"] }
url = { version = "2.3.1", features = ["serde"] }
mime = "0.3.16"
rand = "0.8.5"
rand_chacha = "0.3.1"
headers = "0.3.8"
ulid = "1.0.0"
oauth2-types = { path = "../oauth2-types" }
mas-axum-utils = { path = "../axum-utils", default-features = false }
mas-data-model = { path = "../data-model" }
mas-email = { path = "../email" }
mas-graphql = { path = "../graphql" }
mas-http = { path = "../http", default-features = false }
mas-iana = { path = "../iana" }
mas-jose = { path = "../jose" }
mas-keystore = { path = "../keystore" }
mas-policy = { path = "../policy" }
mas-router = { path = "../router" }
mas-storage = { path = "../storage" }
mas-templates = { path = "../templates" }
[dev-dependencies]
indoc = "1.0.7"
[features]
# Use the native root certificates
native-roots = ["mas-axum-utils/native-roots", "mas-http/native-roots"]
# Use the webpki root certificates
webpki-roots = ["mas-axum-utils/webpki-roots", "mas-http/webpki-roots"]