-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
49 lines (46 loc) · 2.21 KB
/
Copy pathCargo.toml
File metadata and controls
49 lines (46 loc) · 2.21 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
43
44
45
46
47
48
49
[package]
name = "immich-shared-albums"
version = "1.2.2"
edition = "2021"
description = "Cross-server album sharing for Immich — the sidecar."
license = "AGPL-3.0"
[[bin]]
name = "isa"
path = "src/main.rs"
[dependencies]
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "signal", "time", "sync", "fs", "io-util"] }
axum = { version = "0.8", features = ["http1", "json", "query", "tokio"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
rusqlite = { version = "0.37", features = ["bundled"] }
# gzip/brotli/deflate are NOT optional: Immich serves its own SPA bundles compressed, and the
# passthrough strips `content-encoding` on the way out (src/web/passthrough.rs) because reqwest
# hands it a DECOMPRESSED body. Without these features reqwest passes the compressed bytes through
# while the header saying so is removed, and every `/_app/immutable/*.js` reaches the browser as
# binary garbage. `default-features = false` is why they have to be listed explicitly.
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "stream", "multipart", "gzip", "brotli", "deflate"] }
anyhow = "1"
# The identity is a raw ed25519 keypair — the same bytes iroh uses as the endpoint id.
ed25519-dalek = { version = "2", features = ["rand_core"] }
rand_core = { version = "0.6", features = ["getrandom"] }
# base64url, unpadded — exactly what Node's JWK export produces.
base64 = "0.22"
# The peer transport. The e2e/verify lanes' JS oracles reach this through @number0/iroh, napi
# bindings over exactly this crate — so the product and its oracles speak the same library.
iroh = "1"
futures-lite = "2"
# The avatar is a PNG this crate draws itself; only the one compressed chunk needs deflate.
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
# A websocket upgrade is proxied at the socket level, which needs the upgrade handoff itself.
hyper = { version = "1", features = ["http1"] }
hyper-util = { version = "0.1", features = ["tokio"] }
# Pairing codes are stored as SHA-256 hashes and compared in constant time.
sha2 = "0.10"
sha1 = "0.10"
subtle = "2"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true