-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
48 lines (41 loc) · 1.85 KB
/
Copy pathCargo.toml
File metadata and controls
48 lines (41 loc) · 1.85 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
[workspace]
members = [
"snotra-core",
"snotra-egui-runtime",
"src-tauri",
"snotra-settings",
]
resolver = "2"
[workspace.dependencies]
egui = "=0.35.0"
tauri = { version = "=2.11.4", features = ["unstable"] }
tauri-runtime = "=2.11.3"
tauri-runtime-wry = "=2.11.4"
[workspace.package]
version = "0.1.0"
# docgen 検出器(#562): 散文内シンボル参照(intra-doc link)の切れを cargo doc で機械検査する。
# warn 既定では CI が素通りするため deny 化。各 crate は `[lints] workspace = true` で opt-in。
[workspace.lints.rustdoc]
broken_intra_doc_links = "deny"
invalid_html_tags = "deny"
# `src-tauri/clippy.toml` の禁止(#900)を、コマンドラインから独立させる(#950)。
# `disallowed_methods` は **warn 既定**であり、この行が無いと赤くなるのは `ci.yml` と
# `.claude/hooks/post-edit.mjs` が `-D warnings` を渡している間だけで、どちらかがそれを落とせば
# 禁止は黙って助言へ降格する。`clippy.toml` を持たない 3 crate は禁止集合が空ゆえ無害
# (`-D warnings` 無しで exit 0・診断なしを実測)。
# **この節へ `all = "allow"` のような群の allow を足すと、deny の行を残したまま禁止が消える**
# (実測: exit 0・診断 0 件)。群を allow にしたいなら `priority = -1` で先に当てること。
# この節の消失・降格と、`all` / `style` の allow による打ち消しは G-clippy-disallowed が捕まえる
# (上流 clippy が 3 つ目の群へ disallowed_methods を入れたら、その群は見張られない)。
[workspace.lints.clippy]
disallowed_methods = "deny"
[profile.release]
opt-level = 3
lto = true
strip = true
codegen-units = 1
panic = "abort"
[profile.release.package.snotra-settings]
opt-level = "s"
[profile.release.package.snotra]
opt-level = "s"