From 512233a3a38fa6ab4abef75a8083a25dd123b623 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Sun, 5 Jan 2025 21:49:42 -0500 Subject: [PATCH] Update to TaskChampion 2.0.2 --- .github/workflows/checks.yml | 2 +- .github/workflows/tests.yaml | 2 +- Cargo.lock | 4 ++-- INSTALL | 2 +- src/taskchampion-cpp/Cargo.toml | 4 ++-- src/taskchampion-cpp/src/lib.rs | 1 + 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index c5a065868..78d5c74ee 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -32,7 +32,7 @@ jobs: # If this version is old enough to cause errors, or older than the # TaskChampion MSRV, bump it to the MSRV of the currently-required # TaskChampion package; if necessary, bump that version as well. - toolchain: "1.78.0" # MSRV + toolchain: "1.81.0" # MSRV override: true - uses: actions-rs/cargo@v1.0.3 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e17926ee9..78c6b74dc 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -119,7 +119,7 @@ jobs: # TaskChampion MSRV, bump it to the MSRV of the currently-required # TaskChampion package; if necessary, bump that version as well. # This should match the MSRV in `src/taskchampion-cpp/Cargo.toml`. - toolchain: "1.78.0" # MSRV + toolchain: "1.81.0" # MSRV override: true - uses: actions-rs/cargo@v1.0.3 diff --git a/Cargo.lock b/Cargo.lock index 56f3ab7a8..409ab3db6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2553,9 +2553,9 @@ dependencies = [ [[package]] name = "taskchampion" -version = "1.0.2" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4e41712ec2dd9cb5e7f4f20daf13a8e0937a927fb886153f2523a6686c35983" +checksum = "5ba26a986269f2b24f34d64f777abca9abb3f2923fd83111ce831100f292459f" dependencies = [ "anyhow", "aws-config", diff --git a/INSTALL b/INSTALL index d46e67d10..1635fbb9e 100644 --- a/INSTALL +++ b/INSTALL @@ -22,7 +22,7 @@ You will need the following libraries: - libuuid (not needed for OSX) You will need a Rust toolchain of the Minimum Supported Rust Version (MSRV): - - rust 1.78.0 + - rust 1.81.0 Basic Installation ------------------ diff --git a/src/taskchampion-cpp/Cargo.toml b/src/taskchampion-cpp/Cargo.toml index b806f986f..13ee8920d 100644 --- a/src/taskchampion-cpp/Cargo.toml +++ b/src/taskchampion-cpp/Cargo.toml @@ -3,13 +3,13 @@ name = "taskchampion-lib" version = "0.1.0" edition = "2021" publish = false -rust-version = "1.78.0" # MSRV +rust-version = "1.81.0" # MSRV [lib] crate-type = ["staticlib"] [dependencies] -taskchampion = "=1.0.2" +taskchampion = "=2.0.2" cxx = "1.0.133" [features] diff --git a/src/taskchampion-cpp/src/lib.rs b/src/taskchampion-cpp/src/lib.rs index 6fb8ace0a..66017fc59 100644 --- a/src/taskchampion-cpp/src/lib.rs +++ b/src/taskchampion-cpp/src/lib.rs @@ -494,6 +494,7 @@ fn new_replica_on_disk( let storage = tc::StorageConfig::OnDisk { taskdb_dir: PathBuf::from(taskdb_dir), create_if_missing, + access_mode: tc::storage::AccessMode::ReadWrite, } .into_storage()?; Ok(Box::new(tc::Replica::new(storage).into()))