-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
69 lines (55 loc) · 1.56 KB
/
Cargo.toml
File metadata and controls
69 lines (55 loc) · 1.56 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
[workspace]
members = ["glasswally", "xtask"]
# glasswally-ebpf is built separately: cargo xtask build-ebpf
# It requires a BPF cross-compilation target and aya-bpf from git.
exclude = ["glasswally-ebpf"]
resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "MIT"
authors = ["m0rs3c0d3"]
repository = "https://github.com/m0rs3c0d3/glasswally"
description = "Real-time LLM distillation attack detection via eBPF"
# Shared dependencies — referenced as workspace.dependencies in members
[workspace.dependencies]
# Async
tokio = { version = "1", features = ["full"] }
# eBPF
aya = { version = "0.13", features = ["async_tokio"] }
aya-log = "0.2"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Concurrent state
dashmap = "5"
parking_lot = "0.12"
# Pattern matching
aho-corasick = "1"
# Hashing
hex = "0.4"
sha2 = "0.10"
hmac = "0.12"
# Graph
petgraph = "0.6"
# CLI + logging
clap = { version = "4", features = ["derive"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
# Time
chrono = { version = "0.4", features = ["serde"] }
# Error handling
anyhow = "1"
thiserror = "1"
[profile.dev]
opt-level = 1
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
# BPF programs need special profile
[profile.bpf-release]
inherits = "release"
opt-level = 2 # BPF verifier struggles with O3
panic = "abort"