lints

`rustc` lints.
git clone https://git.philomathiclife.com/repos/lints
Log | Files | Refs | README

Cargo.toml (8553B)


      1 [package]
      2 authors = ["Zack Newman <zack@philomathiclife.com>"]
      3 categories = ["command-line-utilities", "development-tools", "rust-patterns"]
      4 description = "Writes [lints.rust] to stdout such that all lints are denied or allowed."
      5 documentation = "https://crates.io/crates/lints/"
      6 edition = "2024"
      7 keywords = ["lints", "rust"]
      8 license = "MIT OR Apache-2.0"
      9 name = "lints"
     10 readme = "README.md"
     11 repository = "https://git.philomathiclife.com/repos/lints/"
     12 rust-version = "1.97.0"
     13 version = "0.3.2"
     14 
     15 [lints.rust]
     16 deprecated-safe = { level = "deny", priority = -1 }
     17 future-incompatible = { level = "deny", priority = -1 }
     18 keyword-idents = { level = "deny", priority = -1 }
     19 let-underscore = { level = "deny", priority = -1 }
     20 nonstandard-style = { level = "deny", priority = -1 }
     21 refining-impl-trait = { level = "deny", priority = -1 }
     22 rust-2018-compatibility = { level = "deny", priority = -1 }
     23 rust-2018-idioms = { level = "deny", priority = -1 }
     24 rust-2021-compatibility = { level = "deny", priority = -1 }
     25 rust-2024-compatibility = { level = "deny", priority = -1 }
     26 unknown-or-malformed-diagnostic-attributes = { level = "deny", priority = -1 }
     27 unused = { level = "deny", priority = -1 }
     28 warnings = { level = "deny", priority = -1 }
     29 ambiguous-negative-literals = { level = "deny", priority = -1 }
     30 closure-returning-async-block = { level = "deny", priority = -1 }
     31 dead-code-pub-in-binary = { level = "deny", priority = -1 }
     32 deprecated-in-future = { level = "deny", priority = -1 }
     33 #deprecated-llvm-intrinsic = { level = "deny", priority = -1 }
     34 deref-into-dyn-supertrait = { level = "deny", priority = -1 }
     35 ffi-unwind-calls = { level = "deny", priority = -1 }
     36 #fuzzy-provenance-casts = { level = "deny", priority = -1 }
     37 impl-trait-redundant-captures = { level = "deny", priority = -1 }
     38 linker-info = { level = "deny", priority = -1 }
     39 #lossy-provenance-casts = { level = "deny", priority = -1 }
     40 macro-use-extern-crate = { level = "deny", priority = -1 }
     41 meta-variable-misuse = { level = "deny", priority = -1 }
     42 missing-copy-implementations = { level = "deny", priority = -1 }
     43 missing-debug-implementations = { level = "deny", priority = -1 }
     44 missing-docs = { level = "deny", priority = -1 }
     45 #multiple-supertrait-upcastable = { level = "deny", priority = -1 }
     46 #must-not-suspend = { level = "deny", priority = -1 }
     47 non-ascii-idents = { level = "deny", priority = -1 }
     48 #non-exhaustive-omitted-patterns = { level = "deny", priority = -1 }
     49 redundant-imports = { level = "deny", priority = -1 }
     50 redundant-lifetimes = { level = "deny", priority = -1 }
     51 #resolving-to-items-shadowing-supertrait-items = { level = "deny", priority = -1 }
     52 #shadowing-supertrait-items = { level = "deny", priority = -1 }
     53 single-use-lifetimes = { level = "deny", priority = -1 }
     54 trivial-casts = { level = "deny", priority = -1 }
     55 trivial-numeric-casts = { level = "deny", priority = -1 }
     56 unit-bindings = { level = "deny", priority = -1 }
     57 unnameable-types = { level = "deny", priority = -1 }
     58 #unqualified-local-imports = { level = "deny", priority = -1 }
     59 unreachable-pub = { level = "deny", priority = -1 }
     60 unsafe-code = { level = "deny", priority = -1 }
     61 unstable-features = { level = "deny", priority = -1 }
     62 unused-crate-dependencies = { level = "deny", priority = -1 }
     63 unused-import-braces = { level = "deny", priority = -1 }
     64 unused-lifetimes = { level = "deny", priority = -1 }
     65 unused-qualifications = { level = "deny", priority = -1 }
     66 unused-results = { level = "deny", priority = -1 }
     67 variant-size-differences = { level = "deny", priority = -1 }
     68 # Before publishing to crates.io, comment above and uncomment below.
     69 #warnings = { level = "allow", priority = -1 }
     70 #ambiguous-associated-items = { level = "allow", priority = -1 }
     71 #ambiguous-glob-imports = { level = "allow", priority = -1 }
     72 #arithmetic-overflow = { level = "allow", priority = -1 }
     73 #binary-asm-labels = { level = "allow", priority = -1 }
     74 #bindings-with-variant-name = { level = "allow", priority = -1 }
     75 #conflicting-repr-hints = { level = "allow", priority = -1 }
     76 #dangerous-implicit-autorefs = { level = "allow", priority = -1 }
     77 #default-overrides-default-fields = { level = "allow", priority = -1 }
     78 #dependency-on-unit-never-type-fallback = { level = "allow", priority = -1 }
     79 #deref-nullptr = { level = "allow", priority = -1 }
     80 #duplicate-features = { level = "allow", priority = -1 }
     81 #elided-lifetimes-in-associated-constant = { level = "allow", priority = -1 }
     82 #enum-intrinsics-non-enums = { level = "allow", priority = -1 }
     83 #explicit-builtin-cfgs-in-flags = { level = "allow", priority = -1 }
     84 #ill-formed-attribute-input = { level = "allow", priority = -1 }
     85 #incomplete-include = { level = "allow", priority = -1 }
     86 #ineffective-unstable-trait-impl = { level = "allow", priority = -1 }
     87 #invalid-atomic-ordering = { level = "allow", priority = -1 }
     88 #invalid-from-utf8-unchecked = { level = "allow", priority = -1 }
     89 #invalid-macro-export-arguments = { level = "allow", priority = -1 }
     90 #invalid-null-arguments = { level = "allow", priority = -1 }
     91 #invalid-reference-casting = { level = "allow", priority = -1 }
     92 #invalid-type-param-default = { level = "allow", priority = -1 }
     93 #legacy-derive-helpers = { level = "allow", priority = -1 }
     94 #let-underscore-lock = { level = "allow", priority = -1 }
     95 #long-running-const-eval = { level = "allow", priority = -1 }
     96 #macro-expanded-macro-exports-accessed-by-absolute-paths = { level = "allow", priority = -1 }
     97 #mutable-transmutes = { level = "allow", priority = -1 }
     98 #named-asm-labels = { level = "allow", priority = -1 }
     99 #never-type-fallback-flowing-into-unsafe = { level = "allow", priority = -1 }
    100 #no-mangle-const-items = { level = "allow", priority = -1 }
    101 #out-of-scope-macro-calls = { level = "allow", priority = -1 }
    102 #overflowing-literals = { level = "allow", priority = -1 }
    103 #patterns-in-fns-without-body = { level = "allow", priority = -1 }
    104 #proc-macro-derive-resolution-fallback = { level = "allow", priority = -1 }
    105 #pub-use-of-private-extern-crate = { level = "allow", priority = -1 }
    106 #repr-transparent-non-zst-fields = { level = "allow", priority = -1 }
    107 #semicolon-in-expressions-from-macros = { level = "allow", priority = -1 }
    108 #test-unstable-lint = { level = "allow", priority = -1 }
    109 #text-direction-codepoint-in-comment = { level = "allow", priority = -1 }
    110 #text-direction-codepoint-in-literal = { level = "allow", priority = -1 }
    111 #unconditional-panic = { level = "allow", priority = -1 }
    112 #undropped-manually-drops = { level = "allow", priority = -1 }
    113 #uninhabited-static = { level = "allow", priority = -1 }
    114 #unknown-crate-types = { level = "allow", priority = -1 }
    115 #useless-deprecated = { level = "allow", priority = -1 }
    116 #varargs-without-pattern = { level = "allow", priority = -1 }
    117 
    118 [lints.clippy]
    119 cargo = { level = "deny", priority = -1 }
    120 complexity = { level = "deny", priority = -1 }
    121 correctness = { level = "deny", priority = -1 }
    122 nursery = { level = "deny", priority = -1 }
    123 pedantic = { level = "deny", priority = -1 }
    124 perf = { level = "deny", priority = -1 }
    125 restriction = { level = "deny", priority = -1 }
    126 style = { level = "deny", priority = -1 }
    127 suspicious = { level = "deny", priority = -1 }
    128 # Noisy, opinionated, and likely don't prevent bugs or improve APIs.
    129 arbitrary_source_item_ordering = "allow"
    130 blanket_clippy_restriction_lints = "allow"
    131 implicit_return = "allow"
    132 inline_trait_bounds = "allow"
    133 min_ident_chars = "allow"
    134 missing_trait_methods = "allow"
    135 pub_with_shorthand = "allow"
    136 redundant_pub_crate = "allow"
    137 return_and_then = "allow"
    138 self_named_module_files = "allow"
    139 single_call_fn = "allow"
    140 single_char_lifetime_names = "allow"
    141 unseparated_literal_suffix = "allow"
    142 # Before publishing to crates.io, comment above and uncomment below.
    143 #cargo = "allow"
    144 #complexity = "allow"
    145 #correctness = "allow"
    146 #nursery = "allow"
    147 #pedantic = "allow"
    148 #perf = "allow"
    149 #restriction = "allow"
    150 #style = "allow"
    151 #suspicious = "allow"
    152 
    153 [lints.rustdoc]
    154 # Before publishing to crates.io, comment below and uncomment below that.
    155 all = { level = "deny", priority = -1 }
    156 #all = "allow"
    157 
    158 [package.metadata.docs.rs]
    159 default-target = "x86_64-unknown-linux-gnu"
    160 targets = [
    161   "aarch64-apple-darwin",
    162   "aarch64-pc-windows-msvc",
    163   "aarch64-unknown-linux-gnu",
    164   "i686-pc-windows-msvc",
    165   "i686-unknown-linux-gnu",
    166   "x86_64-pc-windows-gnu",
    167   "x86_64-pc-windows-msvc",
    168   "x86_64-unknown-freebsd",
    169   "x86_64-unknown-linux-musl",
    170   "x86_64-unknown-netbsd"
    171 ]
    172 
    173 [target.'cfg(target_os = "openbsd")'.dependencies]
    174 priv_sep = { version = "3.0.0-alpha.5.1", default-features = false, features = ["std"] }
    175 
    176 [profile.release]
    177 codegen-units = 1
    178 lto = true
    179 panic = 'abort'
    180 strip = true