-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
110 lines (100 loc) · 2.48 KB
/
Copy pathCargo.toml
File metadata and controls
110 lines (100 loc) · 2.48 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
109
110
[package]
name = "flow"
version = "0.2.0"
edition = "2024"
default-run = "flow"
authors = ["Eric Long <i@hack3r.moe>"]
description = "BGP Flowspec executor"
license = "BSD-2-Clause"
[package.metadata.deb]
name = "flow"
section = "net"
priority = "optional"
depends = "$auto"
extended-description = """
Flow enables BGP Flowspec on software routers and firewalls, acting
as a sink that receives routes from another BGP speaker and transforms flowspecs
into firewall rules and kernel routing tables.
"""
maintainer-scripts = "debian/"
assets = [
[
"install/flow.service",
"usr/lib/systemd/system/",
"0644",
],
[
"install/flow.sysusers",
"usr/lib/sysusers.d/flow.conf",
"0644",
],
]
[workspace]
members = [".", "xtask"]
[workspace.dependencies]
clap = { version = "4.5.20", features = ["derive"] }
[features]
__gen = ["dep:clap_complete", "dep:clap_mangen"]
[dependencies]
anstyle = "1.0.8"
anyhow = "1.0.86"
clap = { workspace = true }
clap-verbosity-flag = "3.0.0"
clap_complete = { version = "4.5.38", optional = true }
clap_mangen = { version = "0.3.0", optional = true }
either = "1.13.0"
env_logger = { version = "0.11.5", default-features = false }
futures = { version = "0.3.30", default-features = false, features = [
"std",
"async-await",
] }
itertools = "0.14.0"
libc = "0.2.161"
log = "0.4.21"
nix = { version = "0.30.0", features = ["user"] }
num-integer = "0.1.46"
postcard = { version = "1.0.10", default-features = false, features = [
"use-std",
] }
replace_with = "0.1.7"
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.132"
smallvec = { version = "1.13.2", features = [
"union",
"const_generics",
"const_new",
"serde",
] }
strum = { version = "0.27.2", features = ["derive"] }
thiserror = "2.0.0"
tokio = { version = "1.38.0", features = [
"rt",
"net",
"macros",
"io-util",
"signal",
"sync",
"time",
] }
tokio-util = "0.7.11"
[target.'cfg(target_os = "linux")'.dependencies]
nftables = { version = "0.6.0", features = ["tokio"] }
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies]
rtnetlink = "0.19.0"
[build-dependencies]
cfg_aliases = "0.2.1"
[dev-dependencies]
async-tempfile = "0.7.0"
macro_rules_attribute = "0.2.0"
netlink-packet-core = "0.8.1"
nix = { version = "0.30.0", features = ["net"] }
rand = "0.9.0"
test-case = "3.3.1"
tokio = { version = "1.38.0", features = ["time"] }
version-compare = "0.2.0"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = true