Debian Codegraph @

debian/missing-sources/predicates/Cargo.toml.orig

raw
1 [workspace]
2 members = ["crates/*"]
3 resolver = "2"
4
5 [workspace.package]
6 repository = "https://github.com/assert-rs/predicates-rs"
7 license = "MIT OR Apache-2.0"
8 edition = "2021"
9 rust-version = "1.74" # MSRV
10 include = [
11 "build.rs",
12 "src/**/*",
13 "Cargo.toml",
14 "LICENSE*",
15 "README.md",
16 "benches/**/*",
17 "examples/**/*"
18 ]
19
20 [workspace.lints.rust]
21 rust_2018_idioms = { level = "warn", priority = -1 }
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 = "warn"
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 [package]
90 name = "predicates"
91 version = "3.1.3"
92 description = "An implementation of boolean-valued predicate functions."
93 authors = ["Nick Stevens <[email protected]>"]
94 homepage = "https://github.com/assert-rs/predicates-rs"
95 documentation = "https://docs.rs/predicates"
96 readme = "README.md"
97 categories = ["data-structures", "rust-patterns"]
98 keywords = ["predicate", "boolean", "combinatorial", "match", "logic"]
99 repository.workspace = true
100 license.workspace = true
101 edition.workspace = true
102 rust-version.workspace = true
103 include.workspace = true
104
105 [package.metadata.docs.rs]
106 all-features = true
107 rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
108
109 [package.metadata.release]
110 pre-release-replacements = [
111 {file="src/lib.rs", search="predicates = \".*\"", replace="predicates = \"{{version}}\"", exactly=1},
112 {file="README.md", search="predicates = \".*\"", replace="predicates = \"{{version}}\"", exactly=1},
113 {file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
114 {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
115 {file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
116 {file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
117 {file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/assert-rs/predicates-rs/compare/{{tag_name}}...HEAD", exactly=1},
118 ]
119
120 [features]
121 default = ["diff", "regex", "float-cmp", "normalize-line-endings", "color"]
122 diff = ["dep:difflib"]
123 unstable = []
124 color = []
125
126 [dependencies]
127 predicates-core = { version = "1.0", path = "crates/core" }
128 difflib = { version = "0.4", optional = true }
129 normalize-line-endings = { version = "0.3.0", optional = true }
130 regex = { version="1.0", optional = true }
131 float-cmp = { version="0.10", optional = true }
132 anstyle = "1.0.0"
133
134 [dev-dependencies]
135 predicates-tree = { version = "1.0", path = "crates/tree" }
136
137 [lints]
138 workspace = true