-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
77 lines (59 loc) · 1.64 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
[package]
name = "scalpel"
version = "0.4.1"
license-file = "LICENSE"
readme = "README.md"
keywords = ["Wireshark", "pcap", "packet", "packet-parsing"]
authors = ["Abhijit Gadgil <gabhijit@iitbombay.org>"]
exclude = ["**/*.pcap", "**/perf.data*", "**/flamegraph.svg"]
description = "Packet dissection and sculpting in Rust."
repository = "https://github.com/gabhijit/scalpel"
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
hex = {version = "0.4", features = ["serde"]}
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
erased-serde = "0.4"
log = { version = "0.4", optional = true }
# Required for feature - python-bindings
pyo3 = { version = "0.20", features = ["extension-module"], optional = true}
# Required for feature - wasm
wasm-bindgen = { version = "0.2" , optional = true}
[dev-dependencies]
clap = { version = "4.0" , features = ["derive"] }
[target.'cfg(unix)'.dev-dependencies]
pcap = { version = "1.3"}
criterion = "0.5"
[target.'cfg(target_family= "wasm")'.dev-dependencies]
wasm-bindgen-test = { version = "0.3" }
# Required by `cargo flamegraph`
[profile.bench]
debug = true
[[bench]]
name = "ip_dissect"
harness = false
[[bench]]
name = "ipv6_display"
harness = false
[[bench]]
name = "dns"
harness = false
[[example]]
name = "packet_json"
path = "examples/packet_as_json.rs"
[[example]]
name = "pcap"
path = "examples/pcap_example.rs"
[[example]]
name = "packet_sculpting"
path = "examples/packet_sculpting.rs"
[build-dependencies]
syn = { version = "1.0", features = ["full"]}
walkdir = "2"
[features]
python-bindings = ['pyo3']
logging = ["log"]
sculpting = []
wasm = ['wasm-bindgen']