Debian Codegraph @

Cargo.toml.orig

raw
1 [workspace]
2 resolver = "2"
3
4 [workspace.package]
5 repository = "https://github.com/crate-ci/imperative"
6 license = "MIT OR Apache-2.0"
7 edition = "2021"
8 rust-version = "1.74" # MSRV
9 include = [
10 "build.rs",
11 "src/**/*",
12 "Cargo.toml",
13 "Cargo.lock",
14 "LICENSE*",
15 "README.md",
16 "examples/**/*"
17 ]
18
19 [workspace.lints.rust]
20 rust_2018_idioms = { level = "warn", priority = -1 }
21 unnameable_types = "warn"
22 unreachable_pub = "warn"
23 unsafe_op_in_unsafe_fn = "warn"
24 unused_lifetimes = "warn"
25 unused_macro_rules = "warn"
26 unused_qualifications = "warn"
27
28 [workspace.lints.clippy]
29 bool_assert_comparison = "allow"
30 branches_sharing_code = "allow"
31 checked_conversions = "warn"
32 collapsible_else_if = "allow"
33 create_dir = "warn"
34 dbg_macro = "warn"
35 debug_assert_with_mut_call = "warn"
36 doc_markdown = "warn"
37 empty_enum = "warn"
38 enum_glob_use = "warn"
39 expl_impl_clone_on_copy = "warn"
40 explicit_deref_methods = "warn"
41 explicit_into_iter_loop = "warn"
42 fallible_impl_from = "warn"
43 filter_map_next = "warn"
44 flat_map_option = "warn"
45 float_cmp_const = "warn"
46 fn_params_excessive_bools = "warn"
47 from_iter_instead_of_collect = "warn"
48 if_same_then_else = "allow"
49 implicit_clone = "warn"
50 imprecise_flops = "warn"
51 inconsistent_struct_constructor = "warn"
52 inefficient_to_string = "warn"
53 infinite_loop = "warn"
54 invalid_upcast_comparisons = "warn"
55 large_digit_groups = "warn"
56 large_stack_arrays = "warn"
57 large_types_passed_by_value = "warn"
58 let_and_return = "allow" # sometimes good to name what you are returning
59 linkedlist = "warn"
60 lossy_float_literal = "warn"
61 macro_use_imports = "warn"
62 mem_forget = "warn"
63 mutex_integer = "warn"
64 needless_continue = "allow"
65 needless_for_each = "warn"
66 negative_feature_names = "warn"
67 path_buf_push_overwrite = "warn"
68 ptr_as_ptr = "warn"
69 rc_mutex = "warn"
70 redundant_feature_names = "warn"
71 ref_option_ref = "warn"
72 rest_pat_in_fully_bound_structs = "warn"
73 result_large_err = "allow"
74 same_functions_in_if_condition = "warn"
75 self_named_module_files = "warn"
76 semicolon_if_nothing_returned = "warn"
77 str_to_string = "warn"
78 string_add = "warn"
79 string_add_assign = "warn"
80 string_lit_as_bytes = "warn"
81 string_to_string = "warn"
82 todo = "warn"
83 trait_duplication_in_bounds = "warn"
84 uninlined_format_args = "warn"
85 verbose_file_reads = "warn"
86 wildcard_imports = "warn"
87 zero_sized_map_values = "warn"
88
89 [profile.dev]
90 panic = "abort"
91
92 [profile.release]
93 panic = "abort"
94 codegen-units = 1
95 lto = true
96 # debug = "line-tables-only" # requires Cargo 1.71
97
98 [package]
99 name = "imperative"
100 version = "1.0.7"
101 description = "Check for imperative mood in text"
102 authors = ["Ed Page <[email protected]>"]
103 documentation = "https://docs.rs/imperative"
104 readme = "README.md"
105 categories = ["text-processing"]
106 repository.workspace = true
107 license.workspace = true
108 edition.workspace = true
109 rust-version.workspace = true
110 include.workspace = true
111
112 [package.metadata.docs.rs]
113 all-features = true
114 rustdoc-args = ["--generate-link-to-definition"]
115
116 [package.metadata.release]
117 pre-release-replacements = [
118 {file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
119 {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
120 {file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
121 {file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
122 {file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/crate-ci/imperative/compare/{{tag_name}}...HEAD", exactly=1},
123 ]
124
125 [dependencies]
126 rust-stemmers = "1.2.0"
127 phf = "0.13"
128
129 [dev-dependencies]
130 snapbox = "0.6.21"
131 phf_codegen = "0.13"
132 rust-stemmers = "1.2.0"
133 multimap = "0.10.1"
134 codegenrs = "3.0"
135 automod = "1.0.15"
136
137 [lints]
138 workspace = true