-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathCargo.toml
108 lines (85 loc) · 2.79 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[package]
name = "diamond-types"
version = "2.0.0"
edition = "2021"
exclude = [
".idea", ".vscode",
"vis", "wiki", "js",
"benchmark_data", "test_data",
".github"
]
license = "ISC"
description = "The world's fastest text CRDT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
members = ["crates/*"]
[dependencies]
smartstring = "1.0.1"
str_indices = "0.4.3"
smallvec = "2.0.0-alpha.6"
lazy_static = "1.4.0"
# Used by wasm module, CLI.
serde = { version = "1.0.183", features = ["derive"], optional = true }
rle = { version = "0.2.0", path = "crates/rle", features = ["smallvec"] }
# Only used for generating testing data.
serde_json = { version = "1.0.104", optional = true }
bumpalo = { version = "3.16.0", features = ["collections"] }
#jumprope = { path = "../../../jumprope-rs" }
# Its tempting to disable default-features in jumprope because it means we don't need to hook in crypto random, which
# saves some size in the wasm output size. But I think its better to default to having this feature enabled.
#jumprope = { path = "../jumprope-rs", version = "1.1.0" }
jumprope = "1.1.2"
humansize = "2.0.0"
num_enum = "0.7.2"
# crc32c might be faster, but it adds 10kb to the wasm bundle size. crc only adds 1kb.
#crc32c = "0.6"
crc = "3.0.0"
lz4_flex = { version = "0.11.3", optional = true }
#bitvec = "1.0.1"
# Needed for macos F_BARRIERFSYNC.
libc = "0.2.139"
rand = { version = "0.8.5", features = ["small_rng"], optional = true }
[dev-dependencies]
rand = { version = "0.8.5", features = ["small_rng"] }
crdt-testdata = { path = "crates/crdt-testdata" }
trace-alloc = { path = "crates/trace-alloc" }
# For OT fuzz data tests
#json_minimal = "0.1.3"
[features]
#default = ["lz4", "storage", "rand"] # rand is only used in testing code, but there's no way to specify that.
default = ["lz4", "storage"]
memusage = ["trace-alloc/memusage"]
lz4 = ["dep:lz4_flex"]
serde = ["dep:serde", "smallvec/serde", "smartstring/serde"]
dot_export = []
wchar_conversion = ["jumprope/wchar_conversion"]
merge_conflict_checks = []
storage = []
expose_benchmarking = ["serde", "serde_json"]
stats = []
# This is internal only for generating JSON testing data. To generate, run test suite with
# rm *_tests.json; cargo test --features gen_test_data causalgraph::parents::tools -- --test-threads 1
gen_test_data = ["serde", "serde_json", "rand"]
[lib]
bench = false
[profile.release]
#debug = true
lto = true
codegen-units = 1
#opt-level = "s"
panic = "abort"
[profile.release.package.dt-wasm]
opt-level = 2
#opt-level = "s"
#debugging = true
[profile.release.package.dt-cli]
opt-level = "s"
#lto = false
strip = true
[profile.release.package.bench]
codegen-units = 1
# Use with cargo build --profile profiling
[profile.profiling]
inherits = "release"
debug = true
#opt-level = 0