Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
42 lines (40 loc) · 1.89 KB
/
Copy pathCargo.toml
File metadata and controls
42 lines (40 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Two crates, one version: unified-api and unified-gitops pin this repository
# by tag, so both crates move together and a tag names one consistent pair.
[workspace]
resolver = "3"
members = ["crates/secrets-rs", "crates/auth-rs"]
[workspace.package]
version = "0.3.0"
edition = "2024"
# MSRV, the same as the services that depend on these crates: a language
# feature newer than their pinned toolchain must fail here first.
rust-version = "1.96"
license = "Apache-2.0"
repository = "https://github.com/OpusProjects/auth"
# Versions the crates share, declared once (crates name them with
# `workspace = true`), so the two can never resolve different majors.
[workspace.dependencies]
secrets-rs = { path = "crates/secrets-rs" }
# Vault's HTTP API. rustls instead of openssl to keep the build self-contained,
# the same stack the services already use.
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde-saphyr = "2" # pure-Rust YAML reader (no unsafe-libyaml)
tokio = { version = "1", features = ["full"] }
tracing = "0.1"
# LDAP sign-in: bind, look the user up, bind as them. rustls on ring, so no
# OpenSSL comes with it.
ldap3 = { version = "0.12.1", default-features = false, features = ["tls-rustls-ring"] }
# A private CA for the directory (`ca_file`): the TLS config is built here and
# handed to ldap3. Both crates are already in the tree through ldap3 and reqwest.
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
rustls-pki-types = { version = "1", features = ["std"] }
tempfile = "3"
# The HTTP side of sign-in (sessions, the API key middleware). The same
# versions the services use, so the types they share are the same types.
axum = "0.8"
dashmap = "6"
getrandom = "0.4"
subtle = "2"
tower = { version = "0.5", default-features = false, features = ["util"] }