Update to TaskChampion 2.0.2 (#3746)

This commit is contained in:
Dustin J. Mitchell 2025-01-06 13:29:19 -05:00 committed by GitHub
parent ae3651fd3f
commit 2e5177aa7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 8 additions and 7 deletions

View file

@ -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]

View file

@ -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()))