Files
rust-authifier/crates/authifier/Cargo.toml
T
izzy 82391f8a24 feat: probably fix it
Signed-off-by: izzy <me@insrt.uk>
2026-02-10 20:22:48 +00:00

86 lines
2.0 KiB
TOML

[package]
name = "authifier"
version = "1.0.16"
edition = "2021"
license = "Apache-2.0"
authors = ["Pawel Makles <me@insrt.uk>"]
description = "Opinionated Rust authentication library"
repository = "https://github.com/authifier/authifier"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
async-std-runtime = ["async-std"]
database-mongodb = ["mongodb", "bson"]
rocket_impl = ["rocket"]
okapi_impl = ["revolt_rocket_okapi", "revolt_okapi", "schemas"]
schemas = ["schemars"]
revolt_source_list = []
pwned100k = []
have_i_been_pwned = []
hcaptcha = ["reqwest"]
shield = ["reqwest"]
easypwned = ["reqwest"]
default_inbuilts = ["pwned100k", "hcaptcha", "shield", "easypwned"]
# default_inbuilts = []
default = ["async-std-runtime", "database-mongodb", "default_inbuilts"]
[dependencies]
# Lang
log = "0.4"
ulid = { version = "0.5.0", features = ["serde"] }
rand = "0.8.5"
regex = "1.3.9"
nanoid = "0.4.0"
base32 = "0.4.0"
chrono = "0.4.19"
lazy_static = "1.4.0"
async-trait = "0.1.56"
futures = { version = "0.3.21" }
# Serde
sha1 = "0.10.6"
serde_json = { version = "1.0.81" }
iso8601-timestamp = { version = "0.2.10" }
serde = { version = "1.0.116", features = ["derive"] }
# MongoDB
bson = { version = "2.2.0", optional = true }
mongodb = { version = "3.1", optional = true }
# Async runtime
async-std = { version = "1.9.0", features = [
"tokio02",
"tokio1",
"attributes",
], optional = true }
# Schemas
revolt_rocket_okapi = { version = "0.10.0", features = [
"swagger",
], optional = true }
revolt_okapi = { version = "0.9.1", optional = true }
schemars = { version = "0.8.8", optional = true }
# Validation
validator = "0.15.0"
# Web Requests
reqwest = { version = "0.11.10", features = ["json"], optional = true }
# Rocket
rocket = { version = "0.5.1", default-features = false, features = [
"json",
], optional = true }
# Security
totp-lite = "2.0.0"
rust-argon2 = "1.0.0"
# Email
lettre = "0.10.0-alpha.4"
handlebars = "4.3.0"