Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
97 lines (90 loc) · 3.73 KB
/
Copy pathCargo.toml
File metadata and controls
97 lines (90 loc) · 3.73 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
[package]
name = "dix"
version = "3.0.0"
edition = "2024"
rust-version = "1.97.0"
description = "Diff Nix"
readme = "README.md"
homepage = "https://github.com/manic-systems/dix"
repository = "https://github.com/manic-systems/dix"
license = "GPL-3.0-only"
keywords = [ "nix", "nixos" ]
categories = [ "command-line-utilities" ]
include = [ "CHANGELOG.md", "Cargo.lock", "Cargo.toml", "LICENSE.md", "README.md", "src/**" ]
[dependencies]
diff = "0.1.13"
misstep = { features = [ "color", "pretty" ], version = "0.4.1" }
pound = { optional = true, version = "0.5.1" }
rusqlite = { default-features = false, features = [ "cache" ], optional = true, version = "0.40.0" }
serde = { features = [ "derive" ], version = "1.0.228" }
serde_json = "1.0.149"
size = "0.6.0"
tracing = { default-features = false, features = [ "std" ], version = "0.1" }
yansi = { features = [ "detect-env", "detect-tty" ], version = "1.0.1" }
[dependencies.tracing-subscriber]
default-features = false
features = [ "ansi" ]
optional = true
version = "0.3"
[features]
cli = [ "dep:pound", "dep:tracing-subscriber", "store" ]
default = [ "cli", "store" ]
store = [ "dep:rusqlite" ]
[[bin]]
name = "dix"
path = "src/main.rs"
required-features = [ "cli" ]
[dev-dependencies]
proptest = "1.6.0"
tempfile = "3.10.0"
# See:
# <https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html>
[lints.clippy]
# The lint groups above enable some less-than-desirable rules, we should manually
# enable those to keep our sanity.
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
cargo = { level = "warn", priority = -1 }
clone_on_ref_ptr = "warn"
complexity = { level = "warn", priority = -1 }
dbg_macro = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
expect_used = "warn"
filetype_is_file = "warn"
get_unwrap = "warn"
implicit_return = "allow"
infinite_loop = "warn"
map_with_unused_argument_over_ranges = "warn"
missing_docs_in_private_items = "allow"
non_ascii_literal = "allow"
non_std_lazy_statics = "warn"
nursery = { level = "warn", priority = -1 }
pathbuf_init_then_push = "warn"
pattern_type_mismatch = "allow"
pedantic = { level = "warn", priority = -1 }
perf = { level = "warn", priority = -1 }
print_stderr = "warn"
print_stdout = "warn"
question_mark_used = "allow"
rc_buffer = "warn"
rc_mutex = "warn"
rest_pat_in_fully_bound_structs = "warn"
similar_names = "allow"
single_call_fn = "allow"
std_instead_of_core = "allow"
style = { level = "warn", priority = -1 }
todo = "warn"
too_long_first_doc_paragraph = "allow"
too_many_lines = "allow"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
unreachable = "warn"
unused_result_ok = "warn"
unused_trait_names = "allow"
[profile.release]
codegen-units = 1
lto = "fat"
opt-level = 3