SQLite-backed Key / Value Store
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #5 from Tyrannican/v0.4.0

v0.4.0

authored by

Graham Keenan and committed by
GitHub
b076d124 faa21082

+22 -6
+9
CHANGELOG.md
··· 2 2 3 3 Documenting changes between versions beginning from v0.3.0 4 4 5 + ## v0.4.0 6 + 7 + **BREAKING CHANGE**: A newer version of `Rubin` is now used which is incompatible with older versions of Safir. 8 + Attempting to use Safir with older stores will now result in a panic. 9 + Save your older store somewhere and manually remove the old `.safirstore` directory. 10 + This should allow continued usage. 11 + 12 + * Updated verison of `Rubin` to newer version. 13 + 5 14 ## v0.3.0 6 15 7 16 No breaking changes, just an update of the backend used for file creation and maintenance.
+3 -3
Cargo.lock
··· 393 393 394 394 [[package]] 395 395 name = "rubin" 396 - version = "0.2.0" 396 + version = "0.3.0" 397 397 source = "registry+https://github.com/rust-lang/crates.io-index" 398 - checksum = "a4cd8089e004cd9c021660c698720326fcbab770a13df50d16eb907b89327727" 398 + checksum = "8b8b3a06f6cc5e4ad2110061d4d38ba800d9393e3fc4df2d02460693d0f18b21" 399 399 dependencies = [ 400 400 "serde", 401 401 "serde_json", ··· 424 424 425 425 [[package]] 426 426 name = "safir" 427 - version = "0.3.0" 427 + version = "0.4.0" 428 428 dependencies = [ 429 429 "clap", 430 430 "colored",
+2 -2
Cargo.toml
··· 1 1 [package] 2 2 name = "safir" 3 - version = "0.3.0" 3 + version = "0.4.0" 4 4 edition = "2021" 5 5 authors = ["Graham Keenan graham.keenan@outlook.com"] 6 6 license = "MIT OR Apache-2.0" ··· 19 19 serde_json = "1" 20 20 dirs = "5" 21 21 colored = "2" 22 - rubin = "0.2.0" 22 + rubin = "0.3.0" 23 23 tokio = { version = "1.28.2", features = ["full"] }
+7
README.md
··· 41 41 -h, --help Print help 42 42 -V, --version Print version 43 43 ``` 44 + 45 + ## v0.3.0 -> v0.4.0 46 + 47 + v0.4.0 introduces a breaking change which makes it incompatible with older versions of Safir. 48 + 49 + To prevent issues, please remove the old `.safirstore/` directory (store the old data somewhere) and re-run Safir. 50 + This should address any issues!
+1 -1
src/safir.rs
··· 45 45 } 46 46 47 47 /// Add an entry to the store and write it out to disk 48 - pub async fn add_entry(&mut self, key: String, value: String) -> Result<String> { 48 + pub async fn add_entry(&mut self, key: String, value: String) -> Result<()> { 49 49 self.store.insert_string(&key, &value).await 50 50 } 51 51