Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
149 lines (122 loc) · 3.46 KB
/
Copy pathCargo.toml
File metadata and controls
149 lines (122 loc) · 3.46 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
# SPDX-FileCopyrightText: 2025 Adam Poulemanos <89049923+bashandbone@users.noreply.github.com>
#
# SPDX-License-Identifier: LicenseRef-PlainMIT OR MIT
#:tombi schema.strict = false
[package]
name = "submod"
version = "0.4.0"
edition = "2024"
rust-version = "1.89"
description = "A headache-free git submodule management tool. Manage sparse checkouts, submodule updates, and adding/removing submodules with ease."
documentation = "https://docs.rs/submod"
repository = "https://github.com/bashandbone/submod"
license = "LicenseRef-PlainMIT OR MIT"
keywords = ["cli", "git", "gitoxide", "sparse-checkout", "submodule"]
categories = ["command-line-utilities", "development-tools"]
include = [
"Cargo.toml",
"LICENSE-*.md",
"LICENSES/*",
"README.md",
"REUSE.toml",
"sample_config/submod.toml",
"src/**/*",
]
resolver = "3"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lib]
name = "submod"
path = "src/lib.rs"
[[bin]]
name = "submod"
path = "src/main.rs"
[[bench]]
harness = false
name = "benchmark"
[dependencies]
clap_complete = ">=4.0.0"
clap_complete_nushell = ">=4.0.0"
# TOML config
figment = { version = "^0.10.0", default-features = false, features = ["toml"] }
serde = { version = "1.0.220", features = ["derive"] }
# errors
anyhow = "1.0.104"
thiserror = "2.0.20"
# bitflags for status flags
bitflags = "2.13.2"
# As of submod v0.2.0, git2 no longer optional
# gix_submodule just isn't mature enough to realistically provide our functionality without falling back to git2
git2 = { version = "0.21.0" }
tempfile = "3.27.0"
toml = ">=0.8.0"
toml_edit = ">=0.16.0"
gix-submodule = { version = "^0.34.0", features = ["sha1"] }
[dependencies.gix]
# Gitoxide ops
version = "^0.87.1"
default-features = false
features = ["max-performance-safe", "sha1", "status"]
# CLI
[dependencies.clap]
version = ">=4.0.0"
features = ["cargo", "derive", "unicode", "wrap_help"]
[dev-dependencies]
criterion = "0.8.2"
[dev-dependencies.figment]
version = "0.10.0"
default-features = false
features = ["toml", "test"]
[lints.clippy]
# Cargo-specific lints
cargo = { level = "warn", priority = -1 }
# Complexity lints
complexity = { level = "warn", priority = -1 }
# Correctness lints (deny these as they indicate bugs)
correctness = { level = "deny", priority = -1 }
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
# Nursery lints for cutting-edge suggestions
nursery = { level = "warn", priority = -1 }
# Pedantic lints for high code quality
pedantic = { level = "warn", priority = -1 }
# Performance lints
perf = { level = "warn", priority = -1 }
# Style lints
style = { level = "warn", priority = -1 }
# Suspicious constructs
suspicious = { level = "warn", priority = -1 }
# Allow some pedantic lints that can be overly strict for CLI tools
too_many_lines = "allow"
[lints.rust]
# Warn about unreachable code
unreachable_code = "warn"
# Deny unsafe code unless explicitly allowed
unsafe_code = "deny"
# Warn about unused items
unused = { level = "warn", priority = -1 }
[lints.rust.unexpected_cfgs]
level = "warn"
missing_docs = "warn"
# Allow cfg(coverage) and cfg(coverage_nightly) set by cargo-llvm-cov
check-cfg = [
"cfg(coverage)",
"cfg(coverage_nightly)",
"cfg(coverage_attribute)",
]
[profile.bench]
inherits = "release"
[profile.dev]
opt-level = 1
lto = false
incremental = true
[profile.release]
opt-level = 3
lto = true
incremental = false
codegen-units = 1
[profile.test]
inherits = "dev"