rpz

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

commit 0448aaa6b5c123c3fac2a5ac73fd70f709ce0adb
parent a8403218830f0f8c766586fa459b0fb9ad388709
Author: Zack Newman <zack@philomathiclife.com>
Date:   Tue, 26 Aug 2025 08:30:29 -0600

fix macos compile. lints. docs.

Diffstat:
MCargo.toml | 31+++++++++++++++++++------------
MREADME.md | 6++----
Msrc/priv_sep.rs | 4++--
3 files changed, 23 insertions(+), 18 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml @@ -9,24 +9,30 @@ license = "MIT OR Apache-2.0" name = "rpz" readme = "README.md" repository = "https://git.philomathiclife.com/repos/rpz/" -version = "1.4.0" +version = "1.4.1" [lints.rust] ambiguous_negative_literals = { level = "deny", priority = -1 } closure_returning_async_block = { level = "deny", priority = -1 } +deprecated_safe = { level = "deny", priority = -1 } deref_into_dyn_supertrait = { level = "deny", priority = -1 } ffi_unwind_calls = { level = "deny", priority = -1 } future_incompatible = { level = "deny", priority = -1 } +#fuzzy_provenance_casts = { level = "deny", priority = -1 } impl_trait_redundant_captures = { level = "deny", priority = -1 } -keyword-idents = { level = "deny", priority = -1 } +keyword_idents = { level = "deny", priority = -1 } let_underscore = { level = "deny", priority = -1 } -linker_messages = { level = "deny", priority = -1 } +#linker_messages = { level = "deny", priority = -1 } +#lossy_provenance_casts = { level = "deny", priority = -1 } macro_use_extern_crate = { level = "deny", priority = -1 } meta_variable_misuse = { level = "deny", priority = -1 } missing_copy_implementations = { level = "deny", priority = -1 } missing_debug_implementations = { level = "deny", priority = -1 } missing_docs = { level = "deny", priority = -1 } +#multiple_supertrait_upcastable = { level = "deny", priority = -1 } +#must_not_suspend = { level = "deny", priority = -1 } non_ascii_idents = { level = "deny", priority = -1 } +#non_exhaustive_omitted_patterns = { level = "deny", priority = -1 } nonstandard_style = { level = "deny", priority = -1 } redundant_imports = { level = "deny", priority = -1 } redundant_lifetimes = { level = "deny", priority = -1 } @@ -36,11 +42,12 @@ rust_2018_idioms = { level = "deny", priority = -1 } rust_2021_compatibility = { level = "deny", priority = -1 } rust_2024_compatibility = { level = "deny", priority = -1 } single_use_lifetimes = { level = "deny", priority = -1 } +#supertrait_item_shadowing_definition = { level = "deny", priority = -1 } trivial_casts = { level = "deny", priority = -1 } trivial_numeric_casts = { level = "deny", priority = -1 } unit_bindings = { level = "deny", priority = -1 } -unknown_lints = { level = "deny", priority = -1 } unnameable_types = { level = "deny", priority = -1 } +#unqualified_local_imports = { level = "deny", priority = -1 } unreachable_pub = { level = "deny", priority = -1 } unsafe_code = { level = "deny", priority = -1 } unstable_features = { level = "deny", priority = -1 } @@ -82,16 +89,16 @@ single_char_lifetime_names = "allow" unseparated_literal_suffix = "allow" [dependencies] -ascii_domain = { version = "0.6.5", default-features = false } +ascii_domain = { version = "0.6.6", default-features = false } num-bigint = { version = "0.4.6", default-features = false } -priv_sep = { version = "3.0.0-alpha.1.1", default-features = false, optional = true } -reqwest = { version = "0.12.20", default-features = false, features = ["brotli", "deflate", "gzip", "rustls-tls-native-roots", "trust-dns"] } +priv_sep = { version = "3.0.0-alpha.1.3", default-features = false, optional = true } +reqwest = { version = "0.12.23", default-features = false, features = ["brotli", "deflate", "gzip", "rustls-tls-native-roots", "trust-dns"] } serde = { version = "1.0.219", default-features = false } -superset_map = { version = "0.3.3", default-features = false } -tokio = { version = "1.45.1", default-features = false, features = ["rt", "time"] } -toml = { version = "0.8.23", default-features = false, features = ["parse"] } -url = { version = "2.5.4", default-features = false, features = ["serde"] } -zfc = { version = "0.4.3", default-features = false } +superset_map = { version = "0.3.4", default-features = false } +tokio = { version = "1.47.1", default-features = false, features = ["rt", "time"] } +toml = { version = "0.9.5", default-features = false, features = ["parse", "serde"] } +url = { version = "2.5.7", default-features = false, features = ["serde"] } +zfc = { version = "0.4.4", default-features = false } ### FEATURES ################################################################# diff --git a/README.md b/README.md @@ -216,10 +216,8 @@ ensure documentation can be built. ### Status -This package is actively maintained. - -The crates are only tested on the `x86_64-unknown-linux-gnu` and `x86_64-unknown-openbsd` targets, but -they should work on platform. +The crate is only tested on the `x86_64-unknown-linux-gnu`, `x86_64-unknown-openbsd`, and `aarch64-apple-darwin` +targets; but it should work on most platforms. Nightly `rustc` is required. Once `BTreeMap` [cursors are stabilized](https://github.com/rust-lang/rust/issues/107540), stable `rustc` will work. On OpenBSD-stable, one can use the `rust` port as long as `RUSTC_BOOTSTRAP` is `export`ed with a value of `1` before invoking diff --git a/src/priv_sep.rs b/src/priv_sep.rs @@ -1,7 +1,7 @@ #[cfg(all(feature = "priv_sep", target_os = "openbsd"))] -pub use priv_sep::NulOrIoErr; +pub(crate) use priv_sep::NulOrIoErr; #[cfg(all(feature = "priv_sep", target_os = "openbsd"))] -use priv_sep::{self, Permissions, Promise, Promises}; +use priv_sep::{Permissions, Promise, Promises}; #[cfg(all(feature = "priv_sep", target_os = "openbsd"))] use std::env; #[cfg(not(all(feature = "priv_sep", target_os = "openbsd")))]