-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
79 lines (71 loc) · 2.24 KB
/
Cargo.toml
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
[package]
name = "git-status-vars"
version = "1.0.4"
authors = ["Daniel Parks <oss-git-status-vars@demonhorse.org>"]
description = "Summarize git repo info into shell variables (for use in a prompt)"
homepage = "https://github.com/danielparks/git-status-vars"
repository = "https://github.com/danielparks/git-status-vars"
documentation = "https://github.com/danielparks/git-status-vars"
readme = "README.md"
keywords = ["git", "shell", "prompt", "zsh", "bash"]
categories = ["development-tools", "command-line-utilities"]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.74.1"
[dependencies]
clap = { version = "4.5.23", features = ["derive"] }
git2 = { version = "0.19.0", default-features = false }
shell-words = "1.1.0"
[dev-dependencies]
assert_cmd = "2.0.7"
bstr = { version = "1.1.0", default-features = false, features = ["std"] }
duct = "0.13.6"
pretty_assertions = "1.3.0"
regex = "1.7.0"
target-test-dir = "0.3.0"
[lints]
workspace = true
[workspace.lints.rust]
unsafe_code = "forbid"
missing_docs = "warn"
[workspace.lints.clippy]
nursery = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
missing_docs_in_private_items = "warn"
# Other restriction lints
arithmetic_side_effects = "warn"
as_underscore = "warn"
assertions_on_result_states = "warn"
dbg_macro = "warn"
default_union_representation = "warn"
empty_structs_with_brackets = "warn"
filetype_is_file = "warn" # maybe?
fn_to_numeric_cast_any = "warn"
format_push_string = "warn" # maybe? alternative is fallible.
get_unwrap = "warn"
impl_trait_in_params = "warn"
integer_division = "warn"
lossy_float_literal = "warn"
mem_forget = "warn"
mixed_read_write_in_expression = "warn"
multiple_inherent_impl = "warn"
multiple_unsafe_ops_per_block = "warn"
mutex_atomic = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
same_name_method = "warn"
semicolon_inside_block = "warn"
str_to_string = "warn"
string_to_string = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unneeded_field_pattern = "warn"
verbose_file_reads = "warn"
# Pedantic exceptions
let_underscore_untyped = "allow"
manual_string_new = "allow"
map_unwrap_or = "allow"
module_name_repetitions = "allow"
# Nursery exceptions
option_if_let_else = "allow"