-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
198 lines (179 loc) · 6.74 KB
/
Copy pathCargo.toml
File metadata and controls
198 lines (179 loc) · 6.74 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
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
[package]
name = "netsuke"
version = "0.1.0"
edition = "2024"
rust-version = "1.89.0"
include = [
"src/**",
"locales/**",
"Cargo.toml",
"README.md",
"LICENSE",
"build.rs",
"build_l10n_audit.rs",
]
license = "ISC"
readme = "README.md"
description = "A YAML-powered Ninja/Jinja hybrid build system."
authors = ["Payton McIntosh <pmcintosh@df12.net>"]
homepage = "https://github.com/leynos/netsuke"
repository = "https://github.com/leynos/netsuke"
keywords = ["build", "ninja", "jinja", "yaml", "automation"]
categories = ["command-line-utilities", "development-tools::build-utils"]
[package.metadata.ortho_config]
root_type = "netsuke::cli::CliConfig"
locales = ["en-US", "es-ES"]
[package.metadata.kani.flags]
default-unwind = "6"
[features]
default = []
legacy-digests = ["sha1", "md5"]
[dependencies]
clap = { version = "4.5.0", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
serde-saphyr = "0.0.6"
minijinja = { version = "2.12.0", features = ["loader"] }
cap-std = { version = "3.4.4", features = ["fs_utf8"] }
camino = "1.2.0"
semver = { version = "1", features = ["serde"] }
anyhow = "1"
indicatif = "0.18.4"
thiserror = "1"
miette = { version = "7.6.0", features = ["fancy"] }
digest = "0.10"
sha2 = "0.10"
sha1 = { version = "0.10", optional = true }
md5 = { package = "md-5", version = "0.10", optional = true }
itoa = "1"
itertools = "0.12"
indexmap = { version = "2.5", features = ["serde"] }
lru = "0.16"
glob = "0.3.3"
walkdir = "2.5"
metrics = "0.24.6"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["fmt"] }
serde_json = { version = "1", features = ["preserve_order"] }
serde_json_canonicalizer = "0.3"
tempfile = "3.8.0"
ambient_fs = { path = "ambient_fs" }
shell-quote = { version = "0.7.2", default-features = false, features = ["sh"] }
shlex = "1.3.0"
time = { version = "0.3.44", features = ["formatting", "macros", "parsing", "serde"] }
ureq = { version = "2.10.5" }
wait-timeout = "0.2"
url = "^2.5.0"
ortho_config = { version = "0.8.0", features = ["serde_json"] }
sys-locale = "0.3.2"
[build-dependencies]
clap = { version = "4.5.0", features = ["derive"] }
clap_mangen = "0.2.29"
ortho_config = { version = "0.8.0", features = ["serde_json"] }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order"] }
thiserror = "1"
time = { version = "0.3.44", features = ["formatting"] }
tracing = "0.1"
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
# 1. hygiene
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
blanket_clippy_restriction_lints = "deny"
cognitive_complexity = "deny"
needless_pass_by_value = "deny"
implicit_hasher = "deny"
# 2. debugging leftovers
dbg_macro = "deny"
print_stdout = "deny"
print_stderr = "deny"
# 2. panic-prone operations
unwrap_used = "deny"
expect_used = "deny"
indexing_slicing = "deny"
string_slice = "deny"
integer_division = "deny"
integer_division_remainder_used = "deny"
panic_in_result_fn = "deny"
unreachable = "deny"
# 4. portability
host_endian_bytes = "deny"
little_endian_bytes = "deny"
big_endian_bytes = "deny"
# 5. nursery idiom polish
let_underscore_must_use = "deny"
or_fun_call = "deny"
option_if_let_else = "deny"
self_named_module_files = "deny"
shadow_reuse = "deny"
shadow_same = "deny"
shadow_unrelated = "deny"
str_to_string = "deny"
string_lit_as_bytes = "deny"
try_err = "deny"
unneeded_field_pattern = "deny"
use_self = "deny"
# 6. numerical foot-guns
float_arithmetic = "deny"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
lossy_float_literal = "deny"
# 7. API ergonomics
missing_const_for_fn = "deny"
must_use_candidate = "deny"
unused_async = "deny"
# 8. Error handling
missing_panics_doc = "deny"
error_impl_error = "deny"
result_large_err = "deny"
[lints.rust]
unknown_lints = "deny"
renamed_and_removed_lints = "deny"
missing_docs = "deny"
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(kani)", "cfg(dylint_lib, values(any()))"] }
[lints.rustdoc]
missing_crate_level_docs = "deny"
broken_intra_doc_links = "deny"
private_intra_doc_links = "deny"
bare_urls = "deny"
invalid_html_tags = "deny"
invalid_codeblock_attributes = "deny"
unescaped_backticks = "deny"
[dev-dependencies]
rstest = "0.26.1"
rstest-bdd = "0.5.0"
rstest-bdd-macros = { version = "0.5.0", features = ["strict-compile-time-validation"] }
tokio = { version = "1", features = ["macros", "rt-multi-thread"], default-features = false }
insta = { version = "1", features = ["yaml"] }
assert_cmd = "2.0.0"
predicates = "3"
mockable = { version = "0.3", features = ["mock"] }
serial_test = "3"
mockall = "0.11"
camino = "1.2.0"
test_support = { path = "test_support" }
strip-ansi-escapes = "0.2"
toml = "0.8"
serde_yaml = "0.9"
proptest = "1.11.0"
trybuild = "1.0.116"
# Target-specific dev-deps
[target.'cfg(unix)'.dev-dependencies]
# Used only to construct FIFOs and device nodes in tests.
rustix = { version = "1.0.8", features = ["fs"] }
[workspace]
# `ambient_fs` is the sanctioned ambient-filesystem escape hatch, so it must be a
# workspace member for the root-level `cargo fmt`, `cargo doc`, `cargo clippy`, and
# `cargo test` gates to format, document, lint, and run its doctests and unit tests.
members = ["ambient_fs"]
# Operate on both packages by default so the bare-cargo gates (`cargo test`,
# `cargo check`, `cargo clippy`, `cargo doc`) cover `ambient_fs` without needing
# `--workspace`; the root package (netsuke, ".") is listed explicitly because a
# default set that omitted it would stop gating netsuke itself.
default-members = [".", "ambient_fs"]
# `test_support` is a path dependency that Cargo would otherwise auto-include as a
# member. It is excluded here to keep its gate coverage unchanged in this focused
# change; folding it into the workspace is tracked separately as it requires
# clearing its own lint backlog.
exclude = ["test_support"]