-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
68 lines (59 loc) · 1.74 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
[workspace]
members = ["cargo"]
default-members = ["cargo"]
resolver = "2"
[workspace.package]
version = "4.1.2"
description = "OBS Source Service and utilities for Rust software packaging."
authors = [
"Soc Virnyl Estela <socvirnyl.estela@uncomfyhalomacro.pl>",
"William Brown <william@blackhats.net.au>",
]
edition = "2021"
license = "MPL-2.0"
[workspace.dependencies]
rustsec = "0.30"
libroast = "^5"
clap = "4.4"
glob = "0.3"
tracing = { version = "0.1", features = [
"max_level_trace",
"release_max_level_debug",
] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
quick-xml = "0.37"
# Pin to the most recent version before or after 1.0.172
# https://github.com/serde-rs/serde/issues/2538 is a security risk.
serde = "1.0"
[workspace.metadata.services]
assets = ["./cargo_vendor.service"]
[workspace.lints.rust]
warnings = "deny"
unused_extern_crates = "warn"
[workspace.lints.clippy]
# Enable some groups of clippy lints.
suspicious = "deny"
perf = "deny"
# Specific lints to enforce.
todo = "warn"
unimplemented = "deny"
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
await_holding_lock = "deny"
needless_pass_by_value = "deny"
trivially_copy_pass_by_ref = "deny"
disallowed_types = "deny"
manual_let_else = "deny"
unreachable = "allow"
unit_arg = "allow"
lint_groups_priority = "allow"
[profile.release]
lto = true # Enable Link Time Optimization.
debug = true # Include debug symbols. If you are going to complain for big binary sizes, there is a release-stripped option :P
codegen-units = 8 # Default. Little gains if set to 1 so why bother?
panic = 'abort' # Abort on panic.
strip = false # Strip symbols from binary.
[profile.release-stripped]
inherits = "release"
strip = true