Everything clients, users and operators meet now carries the fork's name, with no aliases (SPEC.md §2.4, changed here from "protocol identifiers stay"): - JMAP: upstream's registry capability is urn:inbuxa:jmap:registry, beside the fork's own urn:inbuxa:jmap. - WebDAV lock and sync tokens are urn:inbuxa:dav*; clients resync once. - Sieve: vnd.inbuxa.while and vnd.inbuxa.expressions. sieve-rs spells these into its compiler, so it's vendored (vendor/sieve-rs, 0.7.3) and patched in; a unit test fails if Cargo.lock ever moves past the vendored copy. The trusted runtime now names itself too, rather than answering sieve-rs's default. - The web interface's OAuth client is inbuxa-webui. On every start the old stalwart-webui client is removed and any application naming it is moved over. - The spam filter's blobs are INBUXA_SPAM_*; every start moves any left under the old keys, so a trained model survives. - SQL stores and log files default to inbuxa, in the code and in the schema served to the admin (checksum regenerated). - Settings are INBUXA_* only. A STALWART_* variable that's set where its INBUXA_* one isn't stops the server at startup, naming it. - The version-upgrade messages link docs.inbuxa.org's migration page, and the OpenAPI description, smtp crate metadata and web-push test fixtures lose the name. Kept on purpose, allowlisted with reasons: the OAuth key-derivation contexts (renaming them would end every session and invalidate every sealed client id) and the hashed application prefix. Also fixes a latent start-up failure: ensure_client updated an existing first-party client with a revision of 0, which the registry's assertion never matches, so adding a redirect URI or changing the webmail secret failed start-up. And the principal session test now expects legacyProtocols (C-1, added 2026-09-21), which it had missed. Tested: the server builds without warnings; common's 106 unit tests, including the vendoring check; a new integration test for the two start-up migrations; and the webdav, jmap, imap and SMTP Sieve suites.
98 lines
4.2 KiB
TOML
98 lines
4.2 KiB
TOML
[package]
|
|
name = "tests"
|
|
version = "0.16.23"
|
|
edition = "2024"
|
|
|
|
[features]
|
|
# `pending-rebuild` held the shared tests of features the fork hadn't rebuilt
|
|
# yet. All nine are built and every gate is off, so the feature went on
|
|
# 2026-09-19 (docs/spec/SPEC.md §2.2b).
|
|
#default = ["sqlite", "postgres", "mysql", "rocks", "s3", "redis", "nats", "azure", "foundationdb"]
|
|
#default = ["sqlite", "postgres", "mysql", "rocks", "s3", "redis", "foundationdb"]
|
|
default = ["rocks", "sqlite"]
|
|
sqlite = ["store/sqlite", "directory/sqlite"]
|
|
foundationdb = ["store/foundation", "common/foundation"]
|
|
postgres = ["store/postgres", "directory/postgres"]
|
|
mysql = ["store/mysql", "directory/mysql"]
|
|
rocks = ["store/rocks"]
|
|
s3 = ["store/s3"]
|
|
redis = ["store/redis", "coordinator/redis"]
|
|
nats = ["coordinator/nats"]
|
|
kafka = ["coordinator/kafka"]
|
|
azure = ["store/azure"]
|
|
|
|
[dev-dependencies]
|
|
store = { path = "../crates/store", features = ["test_mode"] }
|
|
nlp = { path = "../crates/nlp" }
|
|
directory = { path = "../crates/directory", features = ["test_mode"] }
|
|
coordinator = { path = "../crates/coordinator", features = ["test_mode"] }
|
|
jmap = { path = "../crates/jmap", features = ["test_mode"] }
|
|
jmap_proto = { path = "../crates/jmap-proto" }
|
|
imap = { path = "../crates/imap", features = ["test_mode"] }
|
|
imap_proto = { path = "../crates/imap-proto" }
|
|
types = { path = "../crates/types" }
|
|
dav = { path = "../crates/dav", features = ["test_mode"] }
|
|
dav-proto = { path = "../crates/dav-proto", features = ["test_mode"] }
|
|
calcard = { version = "0.3", features = ["rkyv"] }
|
|
groupware = { path = "../crates/groupware", features = ["test_mode"] }
|
|
http = { path = "../crates/http", features = ["test_mode"] }
|
|
http_proto = { path = "../crates/http-proto", features = ["test_mode"] }
|
|
scim = { path = "../crates/scim", features = ["test_mode"] }
|
|
scim-proto = { path = "../crates/scim-proto" }
|
|
services = { path = "../crates/services", features = ["test_mode"] }
|
|
pop3 = { path = "../crates/pop3", features = ["test_mode"] }
|
|
smtp = { path = "../crates/smtp", features = ["test_mode"] }
|
|
common = { path = "../crates/common", features = ["test_mode"] }
|
|
registry = { path = "../crates/registry" }
|
|
inbuxa-features = { path = "../crates/features" }
|
|
email = { path = "../crates/email", features = ["test_mode"] }
|
|
spam-filter = { path = "../crates/spam-filter", features = ["test_mode"] }
|
|
trc = { path = "../crates/trc", features = [] }
|
|
managesieve = { path = "../crates/managesieve", features = ["test_mode"] }
|
|
migration = { path = "../crates/migration" }
|
|
smtp-proto = { version = "0.2" }
|
|
mail-auth = { version = "0.13", features = ["test"] }
|
|
mail-parser = { version = "0.11", features = ["full_encoding", "rkyv"] }
|
|
mail-builder = "1.0"
|
|
sieve-rs = { version = "0.7", features = ["rkyv"] }
|
|
utils = { path = "../crates/utils", features = ["test_mode"] }
|
|
jmap-client = { version = "0.4", features = ["websockets", "debug", "async"] }
|
|
tokio = { version = "1.53", features = ["full"] }
|
|
tokio-rustls = { version = "0.26", default-features = false, features = ["aws_lc_rs", "tls12"] }
|
|
rustls = { version = "0.23.43", default-features = false, features = ["std", "aws_lc_rs", "tls12"] }
|
|
rustls-pki-types = { version = "1" }
|
|
csv = "1.4"
|
|
rayon = { version = "1.12.0" }
|
|
flate2 = { version = "1.1.10", features = ["zlib"], default-features = false }
|
|
serde = { version = "1.0", features = ["derive"]}
|
|
serde_json = "1.0"
|
|
reqwest = { version = "0.13", default-features = false, features = ["rustls", "multipart", "http2", "form"]}
|
|
bytes = "1.12.1"
|
|
futures = "0.3"
|
|
ece = "2.3"
|
|
hyper = { version = "1.11.1", features = ["server", "http1", "http2"] }
|
|
hyper-util = { version = "0.1.20", features = ["tokio"] }
|
|
base64 = "0.23"
|
|
ahash = { version = "0.8" }
|
|
serial_test = "4.0.1"
|
|
chrono = "0.4"
|
|
aws-lc-rs = { version = "1" }
|
|
biscuit = "0.8.0"
|
|
form_urlencoded = "1.2.2"
|
|
rkyv = { version = "0.8.18", features = ["little_endian"] }
|
|
quick-xml = "0.41"
|
|
jmap-tools = { version = "0.1" }
|
|
dns-update = { version = "0.5", features = ["test_provider"] }
|
|
x509-parser = "0.18"
|
|
rcgen = "0.14"
|
|
sha2 = "0.11"
|
|
time = "0.3"
|
|
testcontainers = { version = "0.28", features = ["reusable-containers"] }
|
|
rust-s3 = { version = "0.37", default-features = false, features = ["tokio-rustls-tls"] }
|
|
|
|
[target.'cfg(not(any(target_env = "msvc", target_os = "freebsd")))'.dependencies]
|
|
tikv-jemallocator = "0.7"
|
|
|
|
[lints]
|
|
workspace = true
|