-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
94 lines (79 loc) · 2.54 KB
/
Cargo.toml
File metadata and controls
94 lines (79 loc) · 2.54 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
[package]
name = "submod"
version = "0.1.2"
edition = "2024"
rust-version = "1.85"
description = "Git submodule manager with sparse checkout support using gitoxide"
authors = ["Adam Poulemanos <89049923+bashandbone@users.noreply.github.com>"]
license = "MIT" # Plain MIT license: plainlicense.org/licenses/permissive/mit/
repository = "https://github.com/bashandbone/submod"
homepage = "https://github.com/bashandbone/submod"
documentation = "https://docs.rs/submod"
readme = "README.md"
keywords = ["git", "submodule", "gitoxide", "cli", "sparse-checkout"]
categories = ["command-line-utilities", "development-tools"]
resolver = "3"
[dependencies]
# Gitoxide ops
gix = { version = "0.72.1", features = ["max-performance"] }
gix-config = { version = "0.45.1", features = ["serde"] }
gix-submodule = "0.19.1"
bstr = { version = "1.12.0", default-features = false }
# CLI
clap = { version = "4.5.40", features = ["derive"] }
# TOML config
toml = "0.8.23"
toml_edit = "0.22.27"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140"
# errors
anyhow = "1.0.98"
thiserror = "2.0.12"
# optional for better low-level ops; falls back to using `git` directly if not available
git2 = { version = "0.20.2", optional = true }
[lib]
name = "submod"
path = "src/lib.rs"
[[bin]]
name = "submod"
path = "src/main.rs"
[features]
default = ["git2-support"]
git2-support = ["git2"]
[dev-dependencies]
tempfile = "3.14.0"
serde_json = "1.0.140"
[lints.rust]
# Deny unsafe code unless explicitly allowed
unsafe_code = "forbid"
# Warn about unused items
unused = { level = "warn", priority = -1 }
# Warn about missing documentation
missing_docs = "warn"
# Warn about unreachable code
unreachable_code = "warn"
[lints.clippy]
# Pedantic lints for high code quality
pedantic = { level = "warn", priority = -1 }
# Nursery lints for cutting-edge suggestions
nursery = { level = "warn", priority = -1 }
# Performance lints
perf = { level = "warn", priority = -1 }
# 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 }
# 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"
module_name_repetitions = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]