Files
inbuxa-server/crates/main/Cargo.toml
jcoffey-dev 9f3aa90127
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 13m46s
--upgrade-plan: what --upgrade-store would do, read only
For the Helm chart's upgrade hook (K-C9). The 2026.x to 27.1 crossing has
a layout step that isn't rolling-safe: a rolling update stalls, because
the new pod waits for the old ones to stop. The hook has to stop every
server pod first, but only when a step needs it, which the server knows
and the chart shouldn't hard-code (S5).

inbuxa --upgrade-plan boots as --upgrade-store does, writes nothing, and
prints one line of JSON: the store's layout version, this build's, and
each step with whether it's rolling-safe. Its exit code is for a shell
to branch on: 0 nothing to do, 3 rolling-safe steps only, 4 a step needs
every other node stopped, 2 a newer release changed the store, 1 can't
tell.

The store_version integration test covers a current store, layout 1 and
2, and a newer store, and that the plan leaves the mark alone.
2026-11-18 13:45:25 -07:00

90 lines
3.0 KiB
TOML

[package]
name = "inbuxa"
description = "inbuxa mail and collaboration server, a fork of Stalwart"
authors = [ "Stalwart Labs LLC <[email protected]>"]
homepage = "https://inbuxa.org"
keywords = ["imap", "jmap", "smtp", "email", "mail", "webdav", "server"]
categories = ["email"]
# Upstream offers AGPL-3.0-only OR LicenseRef-SEL; inbuxa takes the AGPL only.
license = "AGPL-3.0-only"
version.workspace = true
edition = "2024"
[[bin]]
name = "inbuxa"
path = "src/main.rs"
[dependencies]
serde_json = "1.0"
store = { path = "../store" }
coordinator = { path = "../coordinator" }
jmap = { path = "../jmap" }
types = { path = "../types" }
smtp = { path = "../smtp" }
smtp-proto = { version = "0.2", features = ["rkyv", "serde"] }
imap = { path = "../imap" }
pop3 = { path = "../pop3" }
spam-filter = { path = "../spam-filter" }
managesieve = { path = "../managesieve" }
common = { path = "../common" }
email = { path = "../email" }
directory = { path = "../directory" }
http = { path = "../http" }
scim = { path = "../scim" }
dav = { path = "../dav" }
groupware = { path = "../groupware" }
services = { path = "../services" }
trc = { path = "../trc" }
utils = { path = "../utils" }
registry = { path = "../registry" }
http_proto = { path = "../http-proto" }
migration = { path = "../migration" }
tokio = { version = "1.53", features = ["full"] }
rustls = { version = "0.23.43", default-features = false, features = ["std", "aws_lc_rs", "tls12"] }
[target.'cfg(all(target_arch = "x86_64", any(target_os = "linux", target_os = "freebsd")))'.dependencies]
libc = "0.2.189"
[target.'cfg(not(any(target_env = "msvc", target_os = "freebsd")))'.dependencies]
tikv-jemallocator = "0.7"
[features]
#default = ["sqlite", "postgres", "mysql", "rocks", "s3", "redis", "azure", "nats", "enterprise", "zenoh", "kafka"]
#default = ["sqlite", "postgres", "mysql", "rocks", "s3", "redis", "azure", "nats", "enterprise"]
default = ["rocks"]
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"]
azure = ["store/azure"]
nats = ["coordinator/nats"]
zenoh = ["coordinator/zenoh"]
kafka = ["coordinator/kafka"]
enterprise = [ "jmap/enterprise",
"smtp/enterprise",
"common/enterprise",
"store/enterprise",
"managesieve/enterprise",
"directory/enterprise",
"email/enterprise",
"spam-filter/enterprise",
"http/enterprise",
"scim/enterprise",
"dav/enterprise",
"groupware/enterprise",
"trc/enterprise",
"services/enterprise",
"migration/enterprise" ]
dev_mode = [ "common/dev_mode",
"trc/dev_mode",
"dav/dev_mode",
"http/dev_mode",
"http_proto/dev_mode",
"jmap/dev_mode" ]
[lints]
workspace = true