forked from matrix-org/rust-synapse-compress-state
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
56 lines (46 loc) · 1.11 KB
/
Cargo.toml
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
50
51
52
53
54
55
56
[workspace]
members = ["synapse_auto_compressor", "compressor_integration_tests"]
[package]
authors = ["Erik Johnston"]
description = "A tool to compress some state in a Synapse instance's database"
name = "synapse_compress_state"
version = "0.1.0"
edition = "2018"
[[bin]]
name = "synapse_compress_state"
required-features = ["clap"]
[dependencies]
indicatif = "0.17.0"
openssl = "0.10.55"
postgres = "0.19.0"
postgres-openssl = "0.5.0"
rand = "0.8.0"
rayon = "1.3.0"
string_cache = "0.8.0"
env_logger = "0.10.0"
log = "0.4.14"
log-panics = "2.0.0"
[dependencies.state-map]
git = "https://github.com/matrix-org/rust-matrix-state-map"
# Needed for pyo3 support
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies.clap]
version = "4.0.15"
features = ["cargo"]
optional = true
[dependencies.pyo3]
version = "0.19.0"
features = ["extension-module"]
optional = true
[dependencies.pyo3-log]
version = "0.8.2"
optional = true
[dependencies.tikv-jemallocator]
version = "0.5.0"
optional = true
[features]
default = ["clap", "jemalloc", "pyo3"]
jemalloc = ["tikv-jemallocator"]
no-progress-bars = []
pyo3 = ["dep:pyo3", "dep:pyo3-log"]