From 74d29b0bbc8ec4d3aad08dca28f6a812c4fd6757 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 1 Sep 2024 15:10:20 -0300 Subject: [PATCH] fix: process-relaunch-dangerous-allow-symlink-macos feature flag usage also includes other clippy fixes --- .changes/missing-feature-flag.md | 7 +++++++ crates/packager/Cargo.toml | 4 ++++ crates/resource-resolver/Cargo.toml | 2 +- crates/updater/Cargo.toml | 2 +- crates/updater/src/lib.rs | 4 ++-- crates/utils/Cargo.toml | 1 + 6 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .changes/missing-feature-flag.md diff --git a/.changes/missing-feature-flag.md b/.changes/missing-feature-flag.md new file mode 100644 index 00000000..7599145e --- /dev/null +++ b/.changes/missing-feature-flag.md @@ -0,0 +1,7 @@ +--- +"cargo-packager-updater": patch +"cargo-packager-resource-resolver": patch +"cargo-packager-utils": patch +--- + +Fix `process-relaunch-dangerous-allow-symlink-macos` feature usage. diff --git a/crates/packager/Cargo.toml b/crates/packager/Cargo.toml index fd01331a..f94f5ac5 100644 --- a/crates/packager/Cargo.toml +++ b/crates/packager/Cargo.toml @@ -28,6 +28,10 @@ targets = [ "x86_64-apple-darwin" ] +[lints.rust] +# cfg(doc_cfg) is used for docs.rs detection. see above +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(doc_cfg)'] } + [features] default = [ "cli", "rustls-tls" ] cli = [ "clap", "dep:tracing-subscriber" ] diff --git a/crates/resource-resolver/Cargo.toml b/crates/resource-resolver/Cargo.toml index 3bc22678..0175928a 100644 --- a/crates/resource-resolver/Cargo.toml +++ b/crates/resource-resolver/Cargo.toml @@ -17,5 +17,5 @@ log = "0.4.21" heck = "0.5" [features] -process-relaunch-dangerous-allow-symlink-macos = [ ] +process-relaunch-dangerous-allow-symlink-macos = [ "cargo-packager-utils/process-relaunch-dangerous-allow-symlink-macos" ] auto-detect-format = [ ] diff --git a/crates/updater/Cargo.toml b/crates/updater/Cargo.toml index b1b0fbdc..afa3bada 100644 --- a/crates/updater/Cargo.toml +++ b/crates/updater/Cargo.toml @@ -12,7 +12,7 @@ repository = { workspace = true } [features] default = [ "rustls-tls" ] -process-relaunch-dangerous-allow-symlink-macos = [ ] +process-relaunch-dangerous-allow-symlink-macos = [ "cargo-packager-utils/process-relaunch-dangerous-allow-symlink-macos" ] native-tls = [ "reqwest/native-tls" ] native-tls-vendored = [ "reqwest/native-tls-vendored" ] rustls-tls = [ "reqwest/rustls-tls-native-roots" ] diff --git a/crates/updater/src/lib.rs b/crates/updater/src/lib.rs index 342f9a97..e35555db 100644 --- a/crates/updater/src/lib.rs +++ b/crates/updater/src/lib.rs @@ -55,8 +55,8 @@ //! //! 1. [`204 No Content`](https://datatracker.ietf.org/doc/html/rfc2616#section-10.2.5) in case there is no updates available. //! 2. [`200 OK`](https://datatracker.ietf.org/doc/html/rfc2616#section-10.2.1) and a JSON response that could be either a JSON representing all available platform updates -//! or if using endpoints variables (see above) or a header to attach the current updater target, -//! then it can just return information for the requested target. +//! or if using endpoints variables (see above) or a header to attach the current updater target, +//! then it can just return information for the requested target. //! //! The JSON response is expected to have these fields set: //! diff --git a/crates/utils/Cargo.toml b/crates/utils/Cargo.toml index c1c5e39a..e969327a 100644 --- a/crates/utils/Cargo.toml +++ b/crates/utils/Cargo.toml @@ -19,3 +19,4 @@ cli = [ ] schema = [ "schemars" ] clap = [ "dep:clap" ] serde = [ "dep:serde" ] +process-relaunch-dangerous-allow-symlink-macos = []