Debian Codegraph @

Cargo.toml.orig

raw
1 [workspace]
2 resolver = "3"
3
4 [workspace.package]
5 repository = "https://github.com/rust-cli/roff-rs"
6 license = "MIT OR Apache-2.0"
7 edition = "2024"
8 rust-version = "1.85" # 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_enums = "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 todo = "warn"
82 trait_duplication_in_bounds = "warn"
83 uninlined_format_args = "warn"
84 verbose_file_reads = "warn"
85 wildcard_imports = "warn"
86 zero_sized_map_values = "warn"
87
88 [profile.dev]
89 panic = "abort"
90
91 [profile.release]
92 panic = "abort"
93 codegen-units = 1
94 lto = true
95 # debug = "line-tables-only" # requires Cargo 1.71
96
97 [package]
98 name = "roff"
99 version = "1.1.1"
100 description = "ROFF (man page format) generation library"
101 homepage = "https://github.com/rust-cli/roff-rs"
102 documentation = "https://docs.rs/roff"
103 readme = "README.md"
104 categories = ["development-tools::testing"]
105 repository.workspace = true
106 license.workspace = true
107 edition.workspace = true
108 rust-version.workspace = true
109 include.workspace = true
110
111 [package.metadata.docs.rs]
112 all-features = true
113 rustdoc-args = ["--generate-link-to-definition"]
114
115 [package.metadata.release]
116 pre-release-replacements = [
117 {file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
118 {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
119 {file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
120 {file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
121 {file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: {{repository}}/compare/{{tag_name}}...HEAD", exactly=1},
122 ]
123
124 [dependencies]
125
126 [dev-dependencies]
127 pretty_assertions = "1.4.1"
128 duct = "1.1"
129 automod = "1.0.16"
130
131 [lints]
132 workspace = true