Skip to content

Commit 02a6d13

Browse files
authored
Merge pull request #616 from Nukesor/2024-edition
chore: Update to 2024 edition
2 parents 55401a9 + 54dc260 commit 02a6d13

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+451
-217
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
# The following is the shared configuration for both pueue and its lib
22
[workspace]
33
members = ["pueue", "pueue_lib"]
4-
resolver = "2"
4+
resolver = "3"
55

66
[workspace.package]
77
authors = ["Arne Beer <contact@arne.beer>"]
8-
edition = "2021"
8+
edition = "2024"
99
homepage = "https://github.com/nukesor/pueue"
1010
license = "MIT OR Apache-2.0"
1111
repository = "https://github.com/nukesor/pueue"
12-
rust-version = "1.70"
12+
rust-version = "1.85"
1313

1414
[workspace.dependencies]
1515
better-panic = "0.3"
1616
chrono = { version = "0.4", features = ["serde"] }
1717
color-eyre = "0.6.3"
1818
command-group = "5"
19-
handlebars = "5.1"
19+
handlebars = "6.3"
2020
pretty_assertions = "1"
2121
serde = { version = "1.0", features = ["derive"] }
2222
serde_json = "1.0"
2323
serde_yaml = "0.9"
2424
snap = "1.1"
25-
strum = { version = "0.26", features = ["derive"] }
25+
strum = { version = "0.27", features = ["derive"] }
2626
tokio = { version = "1.43", features = ["io-std", "rt-multi-thread", "time"] }
2727
tracing = "0.1.41"
2828

pueue/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ maintenance = { status = "actively-developed" }
1616

1717
[dependencies]
1818
chrono.workspace = true
19-
clap = { version = "4.4.18", features = [
19+
clap = { version = "4.5.30", features = [
2020
"cargo",
2121
"derive",
2222
"help",
2323
"wrap_help",
2424
] }
25-
clap_complete = "4.4.10"
26-
clap_complete_nushell = "4.4.2"
25+
clap_complete = "4.5.45"
26+
clap_complete_nushell = "4.5.5"
2727
color-eyre.workspace = true
2828
comfy-table = "7"
2929
command-group.workspace = true
3030
ctrlc = { version = "3", features = ["termination"] }
3131
flate2 = "1"
3232
handlebars.workspace = true
33-
interim = { version = "0.1.2", features = ["chrono"] }
33+
interim = { version = "0.2.0", features = ["chrono_0_4"] }
3434
pest = "2.7"
3535
pest_derive = "2.7"
3636
pueue-lib = { version = "0.28.1", path = "../pueue_lib", features = ["client"] }
@@ -68,7 +68,7 @@ procfs = { version = "0.17", default-features = false }
6868

6969
# Linux + Mac OS
7070
[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies]
71-
libproc = "0.14.8"
71+
libproc = "0.14.10"
7272

7373
# Windows
7474
# We don't need any of the default features for crossterm.
@@ -86,11 +86,11 @@ winapi = { version = "0.3", features = [
8686
"processthreadsapi",
8787
"tlhelp32",
8888
] }
89-
windows = { version = "0.58.0", features = [
89+
windows = { version = "0.59.0", features = [
9090
"Win32_Security",
9191
"Win32_System_Environment",
9292
"Win32_System_RemoteDesktop",
9393
"Win32_System_SystemServices",
9494
"Win32_System_Threading",
9595
] }
96-
windows-service = "0.7.0"
96+
windows-service = "0.8.0"

pueue/src/bin/pueue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
use std::{
2-
io::{stdout, IsTerminal},
2+
io::{IsTerminal, stdout},
33
path::PathBuf,
44
};
55

66
use clap::{CommandFactory, Parser};
77
use clap_complete::{generate, generate_to, shells};
88
use color_eyre::{
9-
eyre::{bail, WrapErr},
109
Result,
10+
eyre::{WrapErr, bail},
1111
};
1212
use pueue::client::{
1313
cli::{CliArguments, ColorChoice, Shell, SubCommand},

pueue/src/client/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::path::PathBuf;
22

3-
use chrono::{prelude::*, TimeDelta};
3+
use chrono::{TimeDelta, prelude::*};
44
use clap::{ArgAction, Parser, ValueEnum, ValueHint};
55
use interim::*;
66
use pueue_lib::network::message::Signal;

pueue/src/client/commands/add.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ use std::{
77

88
use chrono::{DateTime, Local};
99
use pueue_lib::{
10+
Request, Response,
1011
client::Client,
1112
format::format_datetime,
1213
network::message::{AddMessage, AddedTaskMessage},
13-
Request, Response,
1414
};
1515

1616
use super::{follow as follow_cmd, group_or_default, handle_response};

pueue/src/client/commands/edit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::{
22
collections::BTreeMap,
33
env,
4-
fs::{create_dir, read_to_string, File},
4+
fs::{File, create_dir, read_to_string},
55
io::Write,
66
path::{Path, PathBuf},
77
};

pueue/src/client/commands/follow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ use std::{
44
};
55

66
use pueue_lib::{
7+
Response,
78
client::Client,
89
log::{get_log_file_handle, get_log_path, seek_to_last_lines},
910
network::message::StreamRequestMessage,
10-
Response,
1111
};
1212
use tokio::time::sleep;
1313

pueue/src/client/commands/log/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use pueue_lib::{
77
task::{Task, TaskResult, TaskStatus},
88
};
99

10-
use super::{handle_response, selection_from_params, OutputStyle};
10+
use super::{OutputStyle, handle_response, selection_from_params};
1111
use crate::internal_prelude::*;
1212

1313
mod json;

pueue/src/client/commands/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
//! daemon, open some files on the filesystem, edit files and so on.
66
//! All commands that cannot be simply handled by handling requests or using `pueue_lib`.
77
8-
use std::io::{stdin, stdout, Write};
8+
use std::io::{Write, stdin, stdout};
99

1010
use pueue_lib::{
1111
client::Client,
1212
network::message::{Request, Response, TaskSelection},
13-
state::{State, PUEUE_DEFAULT_GROUP},
13+
state::{PUEUE_DEFAULT_GROUP, State},
1414
task::Task,
1515
};
1616

@@ -58,8 +58,8 @@ use start::start;
5858
use stash::stash;
5959
use state::state;
6060
use switch::switch;
61-
use wait::wait;
6261
pub use wait::WaitTargetStatus;
62+
use wait::wait;
6363

6464
use super::{
6565
cli::SubCommand,

0 commit comments

Comments
 (0)