Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
227 changes: 143 additions & 84 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ openssl = { version = "0.10", optional = true }
os-release = "0.1"
path-absolutize = "3"
petgraph = "0.7"
rand = "0.8"
rand = "0.9"
rayon = "1"
regex = "1"
reqwest = { version = "0.12", default-features = false, features = [
Expand Down
1 change: 1 addition & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ allow = [
"MPL-2.0",
"OpenSSL",
"Unicode-3.0",
"Zlib",
]
# The confidence threshold for detecting a license from license text.
# The higher the value, the more closely the license text must be to the
Expand Down
3 changes: 1 addition & 2 deletions e2e/cli/test_ls
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ mise i cargo:usage-cli
assert_contains "mise ls" "cargo:usage-cli"
assert_not_contains "mise ls" "cargo-usage-cli" # if the backend meta file isn't working right these will be displayed

assert "mise ls --prunable" "cargo:usage-cli 2.0.3
tiny 2.0.0"
assert_contains "mise ls --prunable" "cargo:usage-cli"
24 changes: 11 additions & 13 deletions mise.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,37 @@ backend = "aqua:rhysd/actionlint"
"actionlint_1.7.7_linux_amd64.tar.gz" = "sha256:023070a287cd8cccd71515fedc843f1985bf96c436b7effaecce67290e7e0757"

[tools.bun]
version = "1.1.44"
version = "1.2.2"
backend = "core:bun"

[tools.bun.checksums]
"bun-darwin-aarch64.zip" = "sha256:f192297d4570165efaf0ed0ff9939f70c554a639cc56cb7d56963948ea18502e"
"bun-linux-x64-baseline.zip" = "sha256:902f414cf6f83996fca2babb9386d30555529505c0d26d29a99030bb900905d3"
"bun-darwin-aarch64.zip" = "sha256:c4d58e06c5c33885b526f4d91a38ca9ebdb9fc3fb4cd547f7d3302055c98e41c"

[tools.cargo-binstall]
version = "1.10.17"
version = "1.10.22"
backend = "aqua:cargo-bins/cargo-binstall"

[tools.cargo-binstall.checksums]
"cargo-binstall-aarch64-apple-darwin.zip" = "sha256:81abb7de75ef130844bb58965bdb93969afadd0821cf5e1e1bd0517e48963199"
"cargo-binstall-x86_64-unknown-linux-musl.tgz" = "sha256:d073d4e8901e176b0f625845f9a0bbd926a063017991d7cc0c863e6b884d2d59"
"cargo-binstall-aarch64-apple-darwin.zip" = "sha256:97ce4a2f18181f052dda266b042d8bb220e48ffe40ca75e796ae4c5e418b9e01"

[tools."cargo:cargo-edit"]
version = "0.13.0"
version = "0.13.1"
backend = "cargo:cargo-edit"

[tools."cargo:cargo-insta"]
version = "1.42.0"
version = "1.42.1"
backend = "cargo:cargo-insta"

[tools."cargo:git-cliff"]
version = "2.7.0"
version = "2.8.0"
backend = "cargo:git-cliff"

[tools."cargo:toml-cli"]
version = "0.2.3"
backend = "cargo:toml-cli"

[tools."cargo:usage-cli"]
version = "2.0.0"
version = "2.0.4"
backend = "cargo:usage-cli"

[tools.cosign]
Expand All @@ -63,7 +61,7 @@ jq-macos-arm64 = "sha256:0bbe619e663e0de2c550be2fe0d240d076799d6f8a652b70fa04aea
"jq-windows-amd64.exe" = "sha256:7451fbbf37feffb9bf262bd97c54f0da558c63f0748e64152dd87b0a07b6d6ab"

[tools."npm:markdownlint-cli"]
version = "0.43.0"
version = "0.44.0"
backend = "npm:markdownlint-cli"

[tools."npm:prettier"]
Expand All @@ -75,11 +73,11 @@ version = "0.24.2"
backend = "pipx:toml-sort"

[tools.pre-commit]
version = "4.0.1"
version = "4.1.0"
backend = "aqua:pre-commit/pre-commit"

[tools.pre-commit.checksums]
"pre-commit-4.0.1.pyz" = "sha256:f3e65c943795be7879e7ea2beda248321b6c8ae851dabc785522a432fb8ce003"
"pre-commit-4.1.0.pyz" = "sha256:df3ac88cb2d7825af90e887e1eafbdb85481b800541d86e4d437b37f8abf8a39"

[tools.ripgrep]
version = "14.1.1"
Expand Down
10 changes: 5 additions & 5 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ _.path = ["./target/debug", "./node_modules/.bin"]

[tools]
"actionlint" = "latest"
bun = "1.1.44"
cargo-binstall = "1.10.17"
bun = "latest"
cargo-binstall = "latest"
"cargo:cargo-edit" = "latest"
"cargo:cargo-insta" = "latest"
"cargo:git-cliff" = "latest"
Expand All @@ -21,11 +21,11 @@ cosign = "latest"
pre-commit = "latest"
#"python" = { version = "latest", virtualenv = "{{env.HOME}}/.cache/venv" }
"ripgrep" = "latest"
"shellcheck" = "0.10"
"shfmt" = "3"
"shellcheck" = "latest"
"shfmt" = "latest"
slsa-verifier = "latest"
taplo = "latest"
wait-for-gh-rate-limit = "0.1.8"
wait-for-gh-rate-limit = "latest"

[task_config]
includes = ["tasks.toml", "xtasks"]
4 changes: 2 additions & 2 deletions src/rand.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use rand::distributions::Alphanumeric;
use rand::distr::Alphanumeric;
use rand::Rng;

pub fn random_string(length: usize) -> String {
rand::thread_rng()
rand::rng()
.sample_iter(&Alphanumeric)
.take(length)
.map(char::from)
Expand Down
5 changes: 2 additions & 3 deletions src/tera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ use heck::{
ToKebabCase, ToLowerCamelCase, ToShoutyKebabCase, ToShoutySnakeCase, ToSnakeCase,
ToUpperCamelCase,
};
use rand::seq::SliceRandom;
use rand::thread_rng;
use rand::prelude::*;
use std::sync::LazyLock as Lazy;
use tera::{Context, Tera, Value};
use versions::{Requirement, Versioning};
Expand Down Expand Up @@ -74,7 +73,7 @@ static TERA: Lazy<Tera> = Lazy::new(|| {
match args.get("alphabet") {
Some(Value::String(alphabet)) => {
let alphabet = alphabet.chars().collect::<Vec<char>>();
let mut rng = thread_rng();
let mut rng = rand::rng();
let result =
(0..n).map(|_| alphabet.choose(&mut rng).unwrap()).collect();
Ok(Value::String(result))
Expand Down
1 change: 1 addition & 0 deletions xtasks/release-plz
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ sed -i.bak "s/version = \"[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc\.[0-9]\+\)\?\";$/versio

mise run render ::: lint-fix

mise up
cargo update
git add \
Cargo.lock \
Expand Down