-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
156 lines (124 loc) · 4.68 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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# workspace configuration
[workspace.package]
edition = "2021"
version = "0.1.0"
authors = ["Shindan awesome team <[email protected]>"]
repository = "https://github.com/shindan-io/scnr"
homepage = 'https://shindan.io/'
license = "Apache 2.0"
# https://doc.rust-lang.org/cargo/reference/workspaces.html
# ------------------------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------------------------
#
# LINTS
#
# ------------------------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------------------------
# Lints will work ... in the futur : https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#lints
[workspace.lints.rust]
unsafe_code = "forbid"
[workspace.lints.clippy]
missing_errors_doc = "allow"
# ------------------------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------------------------
#
# WORKSPACE CRATES
#
# ------------------------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------------------------
[workspace]
resolver = "2"
default-members = ["scnr"]
members = [
# main cli & higher level (batteries included) lib
"scnr",
# Core system & features
"scnr_core",
# Plugins
"scnr_plist",
"scnr_sqlite",
# Python module
"py_scnr",
# examples
"examples/use_as_rust_lib",
]
# ------------------------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------------------------
#
# DEPENDENCIES
#
# ------------------------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------------------------
[workspace.dependencies]
scnr = { path = "scnr" }
scnr_core = { path = "scnr_core" }
scnr_plist = { path = "scnr_plist" }
scnr_sqlite = { path = "scnr_sqlite" }
py_scnr = { path = "py_scnr" }
# Misc
tokio = { version = "1", features = ["full"] }
thiserror = "2"
anyhow = "1"
tempfile = "3"
time = { version = "0.3", features = ["formatting", "parsing"] }
base64 = "0.22"
flume = "0.11"
clap = { version = "4", features = ["derive", "env"] }
strum = { version = "0.26", features = ["derive"] }
bytes = "1"
# Logging / Tracing / Metrics
pretty_env_logger = "0.5"
tracing = { version = "0.1", features = [
# https://docs.rs/tracing/latest/tracing/#crate-feature-flags
"log",
# "log-always",
] }
tracing-log = "0.2"
log = "0.4"
# Serialisation
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", features = ["preserve_order"] }
serde_yml = "0.0.12"
toml = { version = "0.8" }
quick-xml = { version = "0.37", features = ["serialize"] }
quickxml_to_serde = "0.6"
minidom = "0.16"
csv = "1.3"
plist = "=1.6" # https://github.com/ebarnard/rust-plist/issues/149
# jq
jaq-core = "2"
jaq-json = { version = "1", features = ["serde_json"] }
jaq-std = "2"
# Databases
rusqlite = { version = "0.32", features = ["bundled"] }
# File system
glob = "0.3"
walkdir = "2"
# Compression
zip = "2.2"
lzma-rs = "0.3"
tar = "0.4"
flate2 = "1.0"
# Tests
test-case = "3.3"
pretty_assertions = "1.4"
# Python
# "abi3-py38" tells pyo3 (and maturin) to build using the stable ABI with minimum Python version 3.8
pyo3 = { version = "0.23", features = [
"abi3-py38",
"extension-module",
"anyhow",
] }
# ------------------------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------------------------
#
# COMPILATION PROFILES & OPTIMISATIONS
#
# ------------------------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------------------------
[profile.release]
strip = true
[profile.dev.package]
serde.opt-level = 3
serde_json.opt-level = 3
plist.opt-level = 3