Skip to content

Commit 495ccf5

Browse files
Bump the rust-dependencies group across 1 directory with 9 updates (#397)
* Bump the rust-dependencies group across 1 directory with 9 updates Bumps the rust-dependencies group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [clap](https://github.com/clap-rs/clap) | `4.5.29` | `4.5.31` | | [flate2](https://github.com/rust-lang/flate2-rs) | `1.0.35` | `1.1.0` | | [libcnb](https://github.com/heroku/libcnb.rs) | `0.26.1` | `0.27.0` | | [libherokubuildpack](https://github.com/heroku/libcnb.rs) | `0.26.1` | `0.27.0` | | [rand](https://github.com/rust-random/rand) | `0.8.5` | `0.9.0` | | [tar](https://github.com/alexcrichton/tar-rs) | `0.4.43` | `0.4.44` | | [tempfile](https://github.com/Stebalien/tempfile) | `3.16.0` | `3.17.1` | | [libcnb-test](https://github.com/heroku/libcnb.rs) | `0.26.1` | `0.27.0` | Updates `clap` from 4.5.29 to 4.5.31 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](clap-rs/clap@clap_complete-v4.5.29...v4.5.31) Updates `flate2` from 1.0.35 to 1.1.0 - [Release notes](https://github.com/rust-lang/flate2-rs/releases) - [Changelog](https://github.com/rust-lang/flate2-rs/blob/main/CHANGELOG.md) - [Commits](rust-lang/flate2-rs@1.0.35...1.1.0) Updates `libcnb` from 0.26.1 to 0.27.0 - [Release notes](https://github.com/heroku/libcnb.rs/releases) - [Changelog](https://github.com/heroku/libcnb.rs/blob/main/CHANGELOG.md) - [Commits](heroku/libcnb.rs@v0.26.1...v0.27.0) Updates `libherokubuildpack` from 0.26.1 to 0.27.0 - [Release notes](https://github.com/heroku/libcnb.rs/releases) - [Changelog](https://github.com/heroku/libcnb.rs/blob/main/CHANGELOG.md) - [Commits](heroku/libcnb.rs@v0.26.1...v0.27.0) Updates `rand` from 0.8.5 to 0.9.0 - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](rust-random/rand@0.8.5...0.9.0) Updates `serde` from 1.0.217 to 1.0.218 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](serde-rs/serde@v1.0.217...v1.0.218) Updates `tar` from 0.4.43 to 0.4.44 - [Commits](alexcrichton/tar-rs@0.4.43...0.4.44) Updates `tempfile` from 3.16.0 to 3.17.1 - [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md) - [Commits](Stebalien/tempfile@v3.16.0...v3.17.1) Updates `libcnb-test` from 0.26.1 to 0.27.0 - [Release notes](https://github.com/heroku/libcnb.rs/releases) - [Changelog](https://github.com/heroku/libcnb.rs/blob/main/CHANGELOG.md) - [Commits](heroku/libcnb.rs@v0.26.1...v0.27.0) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies - dependency-name: flate2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-dependencies - dependency-name: libcnb dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-dependencies - dependency-name: libherokubuildpack dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-dependencies - dependency-name: rand dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-dependencies - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies - dependency-name: tar dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies - dependency-name: tempfile dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-dependencies - dependency-name: libcnb-test dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * Update for breaking changes in rand 0.9 https://github.com/rust-random/rand/blob/master/CHANGELOG.md#090---2025-01-27 * Fix clippy errors in newer Rust Fixes: ``` warning: unnecessary semicolon --> commons/src/cache/app_cache.rs:137:10 | 137 | }; | ^ help: remove | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon = note: `-W clippy::unnecessary-semicolon` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::unnecessary_semicolon)]` warning: `commons` (lib) generated 1 warning (run `cargo clippy --fix --lib -p commons` to apply 1 suggestion) warning: `commons` (lib test) generated 1 warning (1 duplicate) warning: unnecessary semicolon --> buildpacks/ruby/src/user_errors.rs:33:6 | 33 | }; | ^ help: remove | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon = note: `-W clippy::unnecessary-semicolon` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::unnecessary_semicolon)]` warning: unnecessary semicolon --> buildpacks/ruby/src/bin/agentmon_loop.rs:61:18 | 61 | }; | ^ help: remove | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon = note: `-W clippy::unnecessary-semicolon` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::unnecessary_semicolon)]` warning: unnecessary semicolon --> buildpacks/ruby/src/bin/agentmon_loop.rs:123:6 | 123 | }; | ^ help: remove | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon warning: unnecessary semicolon --> buildpacks/ruby/src/bin/agentmon_loop.rs:127:6 | 127 | }; | ^ help: remove | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon warning: unnecessary semicolon --> buildpacks/ruby/src/bin/agentmon_loop.rs:133:6 | 133 | }; | ^ help: remove | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon ``` * Refresh lockfile --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ed Morley <501702+edmorley@users.noreply.github.com>
1 parent ef4af81 commit 495ccf5

File tree

8 files changed

+140
-97
lines changed

8 files changed

+140
-97
lines changed

Cargo.lock

+126-82
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cache_diff = { version = "1.1", features = ["bullet_stream"] }
99

1010
[workspace.package]
1111
edition = "2021"
12-
rust-version = "1.82"
12+
rust-version = "1.85"
1313

1414
[workspace.lints.rust]
1515
unreachable_pub = "warn"
@@ -22,4 +22,3 @@ panic_in_result_fn = "warn"
2222
pedantic = { level = "warn", priority = -1 }
2323
unwrap_used = "warn"
2424
module_name_repetitions = "allow"
25-

buildpacks/ruby/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ glob = "0.3"
1818
indoc = "2"
1919
# libcnb has a much bigger impact on buildpack behaviour than any other dependencies,
2020
# so it's pinned to an exact version to isolate it from lockfile refreshes.
21-
libcnb = "=0.26.1"
22-
libherokubuildpack = { version = "=0.26.1", default-features = false, features = ["digest"] }
23-
rand = "0.8"
21+
libcnb = "=0.27.0"
22+
libherokubuildpack = { version = "=0.27.0", default-features = false, features = ["digest"] }
23+
rand = "0.9"
2424
# TODO: Consolidate on either the regex crate or the fancy-regex crate, since this repo currently uses both.
2525
regex = "1"
2626
serde = "1"
@@ -33,5 +33,5 @@ magic_migrate = "1.0"
3333
toml = "0.8"
3434

3535
[dev-dependencies]
36-
libcnb-test = "=0.26.1"
36+
libcnb-test = "=0.27.0"
3737
pretty_assertions = "1.4.1"

buildpacks/ruby/src/bin/agentmon_loop.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn main() {
5858
"Process could not run due to error. {error}, sleeping {SLEEP_FOR:?}"
5959
);
6060
}
61-
};
61+
}
6262
sleep(SLEEP_FOR);
6363
}
6464
}
@@ -120,17 +120,17 @@ fn build_args(env: &HashMap<String, String>) -> Result<Vec<String>, BuildArgsErr
120120
args.push(format!("-statsd-addr=:{port}"));
121121
} else {
122122
return Err(BuildArgsError::MissingPort);
123-
};
123+
}
124124

125125
if env.get(AGENTMON_DEBUG).is_some_and(|value| value == "true") {
126126
args.push("-debug".to_string());
127-
};
127+
}
128128

129129
if let Some(url) = env.get(HEROKU_METRICS_URL) {
130130
args.push(url.clone());
131131
} else {
132132
return Err(BuildArgsError::MissingMetricsUrl);
133-
};
133+
}
134134

135135
Ok(args)
136136
}

buildpacks/ruby/src/steps/default_env.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ pub(crate) fn default_env(
2828
.metadata
2929
.entry("SECRET_KEY_BASE")
3030
.or_insert_with(|| {
31-
let mut rng = rand::thread_rng();
31+
let mut rng = rand::rng();
3232

3333
(0..64)
34-
.map(|_| rng.sample(rand::distributions::Alphanumeric) as char)
34+
.map(|_| rng.sample(rand::distr::Alphanumeric) as char)
3535
.collect::<String>()
3636
.into()
3737
})

buildpacks/ruby/src/user_errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub(crate) fn on_error(err: libcnb::Error<RubyBuildpackError>) {
3030
buildpack or the framework please open an issue on the buildpack's GitHub repository.
3131
"});
3232
}
33-
};
33+
}
3434
}
3535

3636
#[allow(clippy::too_many_lines)]

commons/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fs-err = "3"
1616
glob = "0.3"
1717
# libcnb has a much bigger impact on buildpack behaviour than any other dependencies,
1818
# so it's pinned to an exact version to isolate it from lockfile refreshes.
19-
libcnb = "=0.26.1"
19+
libcnb = "=0.27.0"
2020
regex = "1"
2121
serde = "1"
2222
sha2 = "0.10"

commons/src/cache/app_cache.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl AppCache {
134134
KeepPath::BuildOnly => {
135135
fs_err::remove_dir_all(&self.path).map_err(CacheError::IoError)?;
136136
}
137-
};
137+
}
138138

139139
Ok(self)
140140
}

0 commit comments

Comments
 (0)