-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
84 lines (70 loc) · 1.88 KB
/
Cargo.toml
File metadata and controls
84 lines (70 loc) · 1.88 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
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
[workspace]
resolver = "2"
members = [
"crates/rp-core",
"crates/rp-protocol",
"crates/rp-engine",
"crates/rp-storage",
"crates/rp-storage-postgres",
"crates/rp-storage-git",
"crates/rp-storage-fs",
"crates/rp-network",
"crates/rp-modules",
"crates/rp-server",
"crates/rp-client",
"crates/rp-cli", "crates/rp-events",
"modules/research-log",
"modules/research-log-wasm", "crates/rp-module-sdk",
"modules/example-module",
]
# Exclude test modules from workspace to allow independent builds
exclude = [
"modules/test-minimal",
]
[workspace.package]
version = "0.1.0"
authors = ["Greg Lamberson <greg@researchprocess-gps.org>"]
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/yourusername/researchprocess-gps"
rust-version = "1.75"
# Build profiles to prevent resource exhaustion
[profile.dev]
opt-level = 0
debug = 1
split-debuginfo = "unpacked"
incremental = false
[profile.test]
opt-level = 1
debug = 1
incremental = false
[profile.release]
opt-level = "z"
lto = false # Disable LTO to reduce memory usage
codegen-units = 16 # More units = less memory per unit
[workspace.dependencies]
# Async runtime
tokio = { version = "1.40", features = ["full"] }
async-trait = "0.1"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
bincode = "1.3"
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Database
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "postgres", "sqlite", "uuid", "chrono", "json"] }
# IDs and time
uuid = { version = "1.10", features = ["v7", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
# Validation
validator = { version = "0.18", features = ["derive"] }
# Testing
proptest = "1.5"
quickcheck = "1.0"
[profile.bench]
inherits = "release"