Skip to content

Commit feddec6

Browse files
chore(dep): bump the deps group with 7 updates (#192)
* chore(dep): bump the deps group with 7 updates Bumps the deps group with 7 updates: | Package | From | To | | --- | --- | --- | | [tokio](https://github.com/tokio-rs/tokio) | `1.44.2` | `1.45.1` | | [clap](https://github.com/clap-rs/clap) | `4.5.37` | `4.5.39` | | [openssl](https://github.com/sfackler/rust-openssl) | `0.10.72` | `0.10.73` | | [pyo3](https://github.com/pyo3/pyo3) | `0.24.2` | `0.25.0` | | [clap_complete](https://github.com/clap-rs/clap) | `4.5.48` | `4.5.52` | | [reqwest](https://github.com/seanmonstar/reqwest) | `0.12.15` | `0.12.18` | | [nix](https://github.com/nix-rust/nix) | `0.30.0` | `0.30.1` | Updates `tokio` from 1.44.2 to 1.45.1 - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](tokio-rs/tokio@tokio-1.44.2...tokio-1.45.1) Updates `clap` from 4.5.37 to 4.5.39 - [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.37...clap_complete-v4.5.39) Updates `openssl` from 0.10.72 to 0.10.73 - [Release notes](https://github.com/sfackler/rust-openssl/releases) - [Commits](sfackler/rust-openssl@openssl-v0.10.72...openssl-v0.10.73) Updates `pyo3` from 0.24.2 to 0.25.0 - [Release notes](https://github.com/pyo3/pyo3/releases) - [Changelog](https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md) - [Commits](PyO3/pyo3@v0.24.2...v0.25.0) Updates `clap_complete` from 4.5.48 to 4.5.52 - [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.48...clap_complete-v4.5.52) Updates `reqwest` from 0.12.15 to 0.12.18 - [Release notes](https://github.com/seanmonstar/reqwest/releases) - [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md) - [Commits](seanmonstar/reqwest@v0.12.15...v0.12.18) Updates `nix` from 0.30.0 to 0.30.1 - [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md) - [Commits](nix-rust/nix@v0.30.0...v0.30.1) --- updated-dependencies: - dependency-name: tokio dependency-version: 1.45.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps - dependency-name: clap dependency-version: 4.5.39 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: deps - dependency-name: openssl dependency-version: 0.10.73 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: deps - dependency-name: pyo3 dependency-version: 0.25.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps - dependency-name: clap_complete dependency-version: 4.5.52 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: deps - dependency-name: reqwest dependency-version: 0.12.18 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: deps - dependency-name: nix dependency-version: 0.30.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: deps ... Signed-off-by: dependabot[bot] <support@github.com> * chore(app): bump version to 0.4.7 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: clearloop <tianyi.gc@gmail.com> Co-authored-by: clearloop <udtrokia@gmail.com>
1 parent 6c6d5c5 commit feddec6

File tree

4 files changed

+89
-59
lines changed

4 files changed

+89
-59
lines changed

Cargo.lock

Lines changed: 74 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ path = "src/bin/lc.rs"
44

55
[package]
66
name = "leetcode-cli"
7-
version = "0.4.6"
7+
version = "0.4.7"
88
authors = ["clearloop <tianyi.gc@gmail.com>"]
99
edition = "2021"
1010
description = "Leetcode command-line interface in rust."
@@ -17,23 +17,23 @@ readme = './README.md'
1717

1818
[dependencies]
1919
async-trait = "0.1.88"
20-
tokio = { version = "1.44.2", features = ["full"] }
21-
clap = { version = "4.5.37", features = ["cargo"] }
20+
tokio = { version = "1.45.1", features = ["full"] }
21+
clap = { version = "4.5.39", features = ["cargo"] }
2222
colored = "3.0.0"
2323
dirs = "6.0.0"
2424
env_logger = "0.11.6"
2525
keyring = "3.6.2"
2626
log = "0.4.27"
27-
openssl = "0.10.72"
28-
pyo3 = { version = "0.24.2", optional = true }
27+
openssl = "0.10.73"
28+
pyo3 = { version = "0.25.0", optional = true }
2929
rand = "0.9.1"
3030
serde = { version = "1.0.219", features = ["derive"] }
3131
serde_json = "1.0.140"
3232
toml = "0.8.22"
3333
regex = "1.11.1"
3434
scraper = "0.23.1"
3535
anyhow = "1.0.98"
36-
clap_complete = "4.5.48"
36+
clap_complete = "4.5.52"
3737
thiserror = "2.0.12"
3838
unicode-width = "0.2"
3939

@@ -42,11 +42,11 @@ version = "2.2.10"
4242
features = ["sqlite"]
4343

4444
[dependencies.reqwest]
45-
version = "0.12.15"
45+
version = "0.12.18"
4646
features = ["gzip", "json"]
4747

4848
[features]
4949
pym = ["pyo3"]
5050

5151
[target.'cfg(target_family = "unix")'.dependencies]
52-
nix = { version = "0.30.0", features = [ "signal" ] }
52+
nix = { version = "0.30.1", features = [ "signal" ] }

src/cmds/pick.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl Command for PickCommand {
144144
Some(quesname) => closest_named_problem(&problems, quesname).unwrap_or(1),
145145
None => {
146146
// Pick random without specify id
147-
let problem = &problems[rand::thread_rng().gen_range(0..problems.len())];
147+
let problem = &problems[rand::rng().random_range(0..problems.len())];
148148
problem.fid
149149
}
150150
}
@@ -155,7 +155,7 @@ impl Command for PickCommand {
155155
.or(daily_id)
156156
.unwrap_or_else(|| {
157157
// Pick random without specify id
158-
let problem = &problems[rand::thread_rng().gen_range(0..problems.len())];
158+
let problem = &problems[rand::rng().random_range(0..problems.len())];
159159
problem.fid
160160
})
161161
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy