Debian Codegraph @

Cargo.toml.orig

raw
1 [package]
2 name = "easy-ext"
3 version = "1.0.3" #publish:version
4 edition = "2018"
5 # NB: Sync with msrv badge in README.md
6 rust-version = "1.31"
7 license = "Apache-2.0 OR MIT"
8 repository = "https://github.com/taiki-e/easy-ext"
9 keywords = ["extension", "trait", "macros", "attribute"]
10 categories = ["no-std", "no-std::no-alloc", "rust-patterns"]
11 exclude = ["/.*", "/tools"]
12 description = """
13 A lightweight attribute macro for easily writing extension trait pattern.
14 """
15
16 [package.metadata.docs.rs]
17 targets = ["x86_64-unknown-linux-gnu"]
18
19 [lib]
20 proc-macro = true
21
22 [dev-dependencies]
23 rustversion = "1"
24 trybuild = { git = "https://github.com/taiki-e/trybuild.git", branch = "dev" } # adjust overwrite behavior
25
26 [lints]
27 workspace = true
28
29 [workspace]
30
31 # This table is shared by projects under github.com/taiki-e.
32 # Expect for unexpected_cfgs.check-cfg, it is not intended for manual editing.
33 [workspace.lints.rust]
34 deprecated_safe = "warn"
35 improper_ctypes = "warn"
36 improper_ctypes_definitions = "warn"
37 non_ascii_idents = "warn"
38 rust_2018_idioms = "warn"
39 single_use_lifetimes = "warn"
40 unexpected_cfgs = { level = "warn", check-cfg = [
41 ] }
42 unnameable_types = "warn"
43 unreachable_pub = "warn"
44 # unsafe_op_in_unsafe_fn = "warn" # Set at crate-level instead since https://github.com/rust-lang/rust/pull/100081 merged in Rust 1.65 is not available on MSRV
45 [workspace.lints.clippy]
46 all = "warn" # Downgrade deny-by-default lints
47 pedantic = "warn"
48 as_ptr_cast_mut = "warn"
49 as_underscore = "warn"
50 default_union_representation = "warn"
51 inline_asm_x86_att_syntax = "warn"
52 trailing_empty_array = "warn"
53 transmute_undefined_repr = "warn"
54 undocumented_unsafe_blocks = "warn"
55 unused_trait_names = "warn"
56 # Suppress buggy or noisy clippy lints
57 bool_assert_comparison = { level = "allow", priority = 1 }
58 borrow_as_ptr = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/8286
59 cast_lossless = { level = "allow", priority = 1 } # suggested code has poor codegen with -C opt-level=0 https://godbolt.org/z/GzTxzbd9q
60 collapsible_match = { level = "allow", priority = 1 }
61 declare_interior_mutable_const = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7665
62 doc_markdown = { level = "allow", priority = 1 }
63 float_cmp = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7725
64 incompatible_msrv = { level = "allow", priority = 1 } # buggy: doesn't consider cfg, https://github.com/rust-lang/rust-clippy/issues/12280, https://github.com/rust-lang/rust-clippy/issues/12257#issuecomment-2093667187
65 manual_assert = { level = "allow", priority = 1 }
66 manual_range_contains = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/6455#issuecomment-1225966395
67 missing_errors_doc = { level = "allow", priority = 1 }
68 module_name_repetitions = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+module_name_repetitions
69 naive_bytecount = { level = "allow", priority = 1 }
70 nonminimal_bool = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+nonminimal_bool
71 range_plus_one = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+range_plus_one
72 similar_names = { level = "allow", priority = 1 }
73 single_match = { level = "allow", priority = 1 }
74 single_match_else = { level = "allow", priority = 1 }
75 struct_excessive_bools = { level = "allow", priority = 1 }
76 struct_field_names = { level = "allow", priority = 1 }
77 too_many_arguments = { level = "allow", priority = 1 }
78 too_many_lines = { level = "allow", priority = 1 }
79 type_complexity = { level = "allow", priority = 1 }