-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
75 lines (61 loc) · 2.12 KB
/
Cargo.toml
File metadata and controls
75 lines (61 loc) · 2.12 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
[package]
name = "bgpkit-commons"
version = "0.10.3"
edition = "2024"
authors = ["Mingwei Zhang <mingwei@bgpkit.com>"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/bgpkit/bgpkit-commons"
documentation = "https://docs.rs/bgpkit-commons"
description = """
A library for common BGP-related data and functions.
"""
keywords = ["bgp", "bgpkit"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
thiserror = "2.0"
serde = { version = "1.0", features = ["derive"] }
chrono = { version = "0.4", features = ["serde"], optional = true }
ipnet = { version = "2.9", features = ["serde"], optional = true }
ipnet-trie = { version = "0.3.0", optional = true }
oneio = { version = "0.20.0", optional = true, features = ["json", "xz"] }
regex = { version = "1", optional = true }
serde_json = { version = "1", optional = true }
tracing = { version = "0.1", optional = true }
tar = { version = "0.4", optional = true }
zstd = { version = "0.13", optional = true }
bcder = { version = "0.7", optional = true }
[dev-dependencies]
tracing-subscriber = "0.3"
serde_json = "1"
oneio = { version = "0.20.0", features = ["json", "xz"] }
[features]
default = ["all"]
# Module features
asinfo = ["oneio", "serde_json", "tracing", "chrono", "regex"]
as2rel = ["oneio", "serde_json", "tracing"]
bogons = ["oneio", "ipnet", "regex", "chrono"]
countries = ["oneio"]
mrt_collectors = ["oneio", "chrono"]
rpki = ["oneio", "ipnet", "ipnet-trie", "chrono", "tracing", "tar", "serde_json", "zstd", "bcder"]
# Convenience feature to enable all modules
all = ["asinfo", "as2rel", "bogons", "countries", "mrt_collectors", "rpki"]
# Example configurations - specify required features for each example
[[example]]
name = "as2org"
required-features = ["asinfo", "countries"]
[[example]]
name = "collectors"
required-features = ["mrt_collectors"]
[[example]]
name = "list_aspas"
required-features = ["rpki"]
[[example]]
name = "rpki_historical"
required-features = ["rpki"]
[[example]]
name = "rpkispools"
required-features = ["rpki"]
[lints.clippy]
uninlined_format_args = "allow"
collapsible_if = "allow"