| 1 |
[workspace] |
| 2 |
resolver = "2" |
| 3 |
|
| 4 |
[workspace.package] |
| 5 |
license = "MIT" |
| 6 |
edition = "2021" |
| 7 |
rust-version = "1.74" # MSRV |
| 8 |
include = [ |
| 9 |
"build.rs", |
| 10 |
"src/**/*", |
| 11 |
"Cargo.toml", |
| 12 |
"Cargo.lock", |
| 13 |
"LICENSE*", |
| 14 |
"README.md", |
| 15 |
"benches/**/*", |
| 16 |
"examples/**/*" |
| 17 |
] |
| 18 |
|
| 19 |
[workspace.lints.rust] |
| 20 |
rust_2018_idioms = "warn" |
| 21 |
unreachable_pub = "warn" |
| 22 |
unsafe_op_in_unsafe_fn = "warn" |
| 23 |
unused_lifetimes = "warn" |
| 24 |
unused_macro_rules = "warn" |
| 25 |
unused_qualifications = "warn" |
| 26 |
|
| 27 |
[workspace.lints.clippy] |
| 28 |
bool_assert_comparison = "allow" |
| 29 |
branches_sharing_code = "allow" |
| 30 |
checked_conversions = "warn" |
| 31 |
collapsible_else_if = "allow" |
| 32 |
create_dir = "warn" |
| 33 |
dbg_macro = "warn" |
| 34 |
debug_assert_with_mut_call = "warn" |
| 35 |
doc_markdown = "warn" |
| 36 |
empty_enum = "warn" |
| 37 |
enum_glob_use = "warn" |
| 38 |
expl_impl_clone_on_copy = "warn" |
| 39 |
explicit_deref_methods = "warn" |
| 40 |
explicit_into_iter_loop = "warn" |
| 41 |
fallible_impl_from = "warn" |
| 42 |
filter_map_next = "warn" |
| 43 |
flat_map_option = "warn" |
| 44 |
float_cmp_const = "warn" |
| 45 |
fn_params_excessive_bools = "warn" |
| 46 |
from_iter_instead_of_collect = "warn" |
| 47 |
if_same_then_else = "allow" |
| 48 |
implicit_clone = "warn" |
| 49 |
imprecise_flops = "warn" |
| 50 |
inconsistent_struct_constructor = "warn" |
| 51 |
inefficient_to_string = "warn" |
| 52 |
infinite_loop = "warn" |
| 53 |
invalid_upcast_comparisons = "warn" |
| 54 |
items_after_statements = "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 |
match_wildcard_for_single_variants = "warn" |
| 63 |
mem_forget = "warn" |
| 64 |
mutex_integer = "warn" |
| 65 |
needless_continue = "warn" |
| 66 |
needless_for_each = "warn" |
| 67 |
negative_feature_names = "warn" |
| 68 |
path_buf_push_overwrite = "warn" |
| 69 |
ptr_as_ptr = "warn" |
| 70 |
rc_mutex = "warn" |
| 71 |
redundant_feature_names = "warn" |
| 72 |
ref_option_ref = "warn" |
| 73 |
rest_pat_in_fully_bound_structs = "warn" |
| 74 |
same_functions_in_if_condition = "warn" |
| 75 |
self_named_module_files = "warn" |
| 76 |
semicolon_if_nothing_returned = "warn" |
| 77 |
single_match_else = "warn" |
| 78 |
str_to_string = "warn" |
| 79 |
string_add = "warn" |
| 80 |
string_add_assign = "warn" |
| 81 |
string_lit_as_bytes = "warn" |
| 82 |
string_to_string = "warn" |
| 83 |
todo = "warn" |
| 84 |
trait_duplication_in_bounds = "warn" |
| 85 |
verbose_file_reads = "warn" |
| 86 |
wildcard_imports = "warn" |
| 87 |
zero_sized_map_values = "warn" |
| 88 |
|
| 89 |
[package] |
| 90 |
name = "termtree" |
| 91 |
version = "0.5.1" |
| 92 |
description = "Visualize tree-like data on the command-line" |
| 93 |
documentation = "https://docs.rs/termtree" |
| 94 |
homepage = "https://github.com/rust-cli/termtree" |
| 95 |
repository = "https://github.com/rust-cli/termtree" |
| 96 |
categories = ["command-line-interface", "visualization"] |
| 97 |
keywords = ["cli", "tree", "dag"] |
| 98 |
license.workspace = true |
| 99 |
edition.workspace = true |
| 100 |
rust-version.workspace = true |
| 101 |
include.workspace = true |
| 102 |
|
| 103 |
[package.metadata.docs.rs] |
| 104 |
all-features = true |
| 105 |
rustdoc-args = ["--cfg", "docsrs"] |
| 106 |
|
| 107 |
[package.metadata.release] |
| 108 |
pre-release-replacements = [ |
| 109 |
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1}, |
| 110 |
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1}, |
| 111 |
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1}, |
| 112 |
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1}, |
| 113 |
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/rust-cli/termtree/compare/{{tag_name}}...HEAD", exactly=1}, |
| 114 |
] |
| 115 |
|
| 116 |
[dependencies] |
| 117 |
|
| 118 |
[dev-dependencies] |
| 119 |
snapbox = "0.6.10" |
| 120 |
|
| 121 |
[lints] |
| 122 |
workspace = true |