Bumped MSRV to 1.70

This commit is contained in:
Cherry 2024-09-09 06:53:20 -07:00
parent 7f234e9935
commit f0254f2bce
No known key found for this signature in database
GPG key ID: 8B5DD74E59C6C5AB
5 changed files with 4 additions and 6 deletions

View file

@ -45,6 +45,7 @@ TLDR: The new task state representation is more verbose but significantly cleane
- **Breaking**: Remove the `--children` commandline flags, that have been deprecated and no longer serve any function since `v3.0.0`.
- Send log output to `stderr` instead of `stdout` [#562](https://github.com/Nukesor/pueue/issues/562).
- Change default log level from error to warning [#562](https://github.com/Nukesor/pueue/issues/562).
- Bumped MSRV to 1.70.
### Add

1
Cargo.lock generated
View file

@ -1288,7 +1288,6 @@ dependencies = [
"handlebars",
"interim",
"log",
"once_cell",
"pest",
"pest_derive",
"pretty_assertions",

View file

@ -11,7 +11,7 @@ homepage = "https://github.com/nukesor/pueue"
repository = "https://github.com/nukesor/pueue"
license = "MIT"
edition = "2021"
rust-version = "1.67"
rust-version = "1.70"
[workspace.dependencies]
# Chrono version is hard pinned to a specific version.

View file

@ -26,7 +26,6 @@ ctrlc = { version = "3", features = ["termination"] }
handlebars = { workspace = true }
interim = { version = "0.1.2", features = ["chrono"] }
log = { workspace = true }
once_cell = "1.19.0"
pest = "2.7"
pest_derive = "2.7"
pueue-lib = { version = "0.26.1", path = "../pueue_lib" }

View file

@ -7,7 +7,7 @@ use std::{
sync::{
atomic::{AtomicBool, Ordering},
mpsc::{channel, Receiver, Sender},
Arc, Mutex,
Arc, Mutex, OnceLock,
},
thread,
time::Duration,
@ -15,7 +15,6 @@ use std::{
use anyhow::{anyhow, bail, Result};
use log::{debug, error};
use once_cell::sync::OnceCell;
use windows::{
core::{PCWSTR, PWSTR},
Win32::{
@ -58,7 +57,7 @@ struct Config {
const SERVICE_NAME: &str = "pueued";
const SERVICE_TYPE: ServiceType = ServiceType::OWN_PROCESS;
static CONFIG: OnceCell<Config> = OnceCell::new();
static CONFIG: OnceLock<Config> = OnceLock::new();
define_windows_service!(ffi_service_main, service_main);