mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-27 03:46:50 -06:00
The desktop app joins wss:// sessions (rustls with webpki roots, certificates always checked, clear errors; FIGCRAFT_CA_FILE for private authorities), with one TLS session shared by the reader and writer threads. figcraft-server stops gracefully on SIGTERM/SIGINT/SIGHUP/Ctrl+C, ships in Linux x86_64/aarch64 release archives, and docs/server.md gains a Deploy on a Linux server guide with a hardened systemd unit, Caddyfile, nginx config and Dockerfile in packaging/server.
38 lines
1.2 KiB
TOML
38 lines
1.2 KiB
TOML
[package]
|
|
name = "figcraft-server"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
description = "FigCraft's standalone collaboration server: keeps many files with share links (edit or view), persists them as snapshots plus a log, and serves live sessions (headless, native only)"
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "figcraft-server"
|
|
path = "src/main.rs"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
figcraft-collab = { workspace = true }
|
|
figcraft-collab-net = { workspace = true }
|
|
# Checking a team library before keeping it (read as files using it read it).
|
|
figcraft-format = { workspace = true }
|
|
log = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
crc32fast = { workspace = true }
|
|
toml = "1"
|
|
env_logger = { version = "0.11", default-features = false, features = ["humantime"] }
|
|
# Stopping gracefully on SIGTERM/SIGINT/SIGHUP (systemd, Docker, Ctrl+C) and Ctrl+C/close on Windows.
|
|
ctrlc = { version = "3", features = ["termination"] }
|
|
|
|
[dev-dependencies]
|
|
figcraft-engine = { workspace = true }
|
|
figcraft-doc = { workspace = true }
|
|
tungstenite = { version = "0.30", default-features = false, features = ["handshake"] }
|