rpz

Response policy zone (RPZ) file generator.
git clone https://git.philomathiclife.com/repos/rpz
Log | Files | Refs | README

Cargo.toml (9461B)


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