-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
129 lines (110 loc) · 2.57 KB
/
Cargo.toml
File metadata and controls
129 lines (110 loc) · 2.57 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[package]
authors = [
"FL03 <jo3mccain@icloud.com>",
"Scattered-Systems <support@scsys.io>"
]
categories = ["development-tools::build-utils"]
default-run = "scsys"
description = "A custom build system for the scsys ecosystem"
edition = "2024"
homepage = "https://github.com/scattered-systems/scsys-xtask/wiki"
keywords = ["scsys", "xtask", "build", "system"]
license = "Apache-2.0"
name = "scsys-xtask"
readme = "README.md"
repository = "https://github.com/scattered-systems/scsys-xtask.git"
resolver = "3"
rust-version = "1.85.0"
version = "0.0.0"
[package.metadata.docs.rs]
all-features = false
features = ["full"]
rustc-args = ["--cfg", "docsrs"]
[[bin]]
name = "scsys"
path = "bin/xtask.rs"
required-features = ["cli"]
[lib]
crate-type = ["cdylib", "rlib"]
bench = false
doc = true
doctest = true
test = true
[dependencies]
clap = { features = ["cargo", "derive", "env"], optional = true, version = "4" }
config = { optional = true, version = "0.15" }
duct = { optional = true, version = "1" }
# custom
scsys = { features = ["derive"], version = "0.2.5" }
# data & serialization
serde = { optional = true, features = ["derive"], version = "1" }
serde_json = { optional = true, version = "1" }
# error handling
anyhow = { version = "1" }
thiserror = { version = "2" }
# logging
tracing = { features = ["attributes", "log"], optional = true, version = "0.1" }
tracing-subscriber = { features = ["env-filter", "fmt"], optional = true, version = "0.3" }
# macros
smart-default = { version = "0.7" }
strum = { features = ["derive"], version = "0.27" }
[features]
default = [
"json"
]
full = [
"default",
"duct",
"tracing",
]
# ************* [FF:Features] *************
cli = [
"full",
"clap",
"config",
"tracing-subscriber",
]
# ************* [FF:Dependencies] *************
clap = ["dep:clap"]
config = ["dep:config"]
duct = ["dep:duct"]
json = [
"serde",
"serde_json",
]
serde = [
"dep:serde",
"tracing-subscriber?/serde",
]
serde_json = ["dep:serde_json"]
tracing = ["dep:tracing"]
tracing-subscriber = [
"dep:tracing-subscriber",
"tracing",
"tracing-subscriber?/env-filter",
"tracing-subscriber?/fmt",
]
# ************* [Unit Tests] *************
[[test]]
name = "default"
# ************* [Profiles] *************
[profile.dev]
codegen-units = 256
debug = true
incremental = true
lto = "thin"
opt-level = 2
overflow-checks = true
panic = "unwind"
rpath = true
strip = false
[profile.release]
codegen-units = 16
debug = false
incremental = false
lto = true
opt-level = "z"
overflow-checks = false
panic = "unwind"
rpath = false
strip = true