-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
108 lines (83 loc) · 3.68 KB
/
Copy pathCargo.toml
File metadata and controls
108 lines (83 loc) · 3.68 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
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 = "mindfry"
version = "1.9.0"
edition = "2021"
authors = ["Erdem Arslan <erdemarslan@ymail.com>"]
description = "Memory with a Conscience"
license = "Apache-2.0"
repository = "https://github.com/cluster-127/mindfry"
keywords = ["database", "graph", "cognitive", "ephemeral", "decay"]
categories = ["database", "data-structures"]
[lib]
name = "mindfry"
crate-type = ["cdylib", "rlib"] # Both dynamic lib (for FFI/WASM) and static lib
# ═══════════════════════════════════════════════════════════════
# DEPENDENCIES
# ═══════════════════════════════════════════════════════════════
[dependencies]
# Persistence (Akashic Records)
sled = "0.34"
# Async Runtime (TCP Server)
tokio = { version = "1", features = ["full"] }
# Serialization (MFBP - MindFry Binary Protocol)
bincode = "1.3"
serde = { version = "1", features = ["derive"] }
# Parallel Processing (Decay Engine)
rayon = "1.10"
# Time handling
chrono = "0.4"
# Logging & Tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Bit manipulation (flags)
bitflags = { version = "2", features = ["serde"] }
# Fast hashing for symbol table
rustc-hash = "2"
# String interning (symbol table)
string-interner = "0.18"
# Compression (snapshot format v2)
zstd = "0.13"
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
proptest = "1"
tempfile = "3"
# ═══════════════════════════════════════════════════════════════
# FEATURES
# ═══════════════════════════════════════════════════════════════
[features]
default = ["server"]
server = [] # TCP server binary
wasm = [] # WASM target (disables server features)
# ═══════════════════════════════════════════════════════════════
# BENCHMARKS
# ═══════════════════════════════════════════════════════════════
[[bench]]
name = "decay"
harness = false
[[bench]]
name = "graph"
harness = false
[[bench]]
name = "stability"
harness = false
# ═══════════════════════════════════════════════════════════════
# BINARIES
# ═══════════════════════════════════════════════════════════════
[[bin]]
name = "mindfry-server"
path = "src/bin/server.rs"
required-features = ["server"]
[[bin]]
name = "mfcli"
path = "src/bin/mfcli.rs"
# ═══════════════════════════════════════════════════════════════
# PROFILE OPTIMIZATIONS
# ═══════════════════════════════════════════════════════════════
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
[profile.bench]
lto = true
codegen-units = 1