Skip to content

Commit

Permalink
fix: process-relaunch-dangerous-allow-symlink-macos feature flag usage (
Browse files Browse the repository at this point in the history
#266)

also includes other clippy fixes
  • Loading branch information
lucasfernog-crabnebula committed Sep 2, 2024
1 parent f836afa commit 2b6dd55
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .changes/missing-feature-flag.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 4 additions & 0 deletions crates/packager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down
2 changes: 1 addition & 1 deletion crates/resource-resolver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [ ]
2 changes: 1 addition & 1 deletion crates/updater/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down
4 changes: 2 additions & 2 deletions crates/updater/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
//!
Expand Down
1 change: 1 addition & 0 deletions crates/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ cli = [ ]
schema = [ "schemars" ]
clap = [ "dep:clap" ]
serde = [ "dep:serde" ]
process-relaunch-dangerous-allow-symlink-macos = []

0 comments on commit 2b6dd55

Please sign in to comment.