Bryan Larsen
Bryan Larsen
> that could be run "offline" That's a massive caveat for our use case. > You can pretty trivially write this yourself by using the functions in [the index module](https://docs.rs/cacache/latest/cacache/index/index.html),...
This doesn't seem to work: ``` if let Some(index) = cacache::index::find_async(state_path.as_std_path(), key).await? { debug!(?index); if let Err(err) = cacache::index::delete_async(state_path.as_std_path(), key).await { error!(key, ?err, "could not vacuum"); } let hash =...
At first glance, index::delete is an insert(null) which is a no-op?
This works, but is neither pretty nor robust: ``` for filename in $(find foo/v0/state.cacache/index-v5 -type f ! -name "*.bak") ; do tail -2 ${filename} > ${filename}.trimmed cp ${filename} ${filename}.bak mv...
Correction: rustdesk nightly uses tray-icon 0.11.3. I'll try and build and run rustdesk master which uses 0.14.3.
correction correction: rustdesk nightly does use the master branch (with 0.14.3), not the branch labelled "nightly". :)
libappindicator-rs works for us on CentOS9. It certainly could be PBKAC that prevents tray-icon from working for us on CentOS9. It also failing on rustdesk led me to suspect that...
The big surprise was the corruption of existing data. I did not anticipate that, I expected that writing identical content to a different key would not re-write and corrupt the...
I wrote a wrapper for my usage of cacache::write that calls cacache::exists to ensure it doesn't exist before calling cacache::write. I assumed that it would significantly cut down on the...
Why? If I run two threads of `if !exists() { write() }` simultaneously, if they don't race it does what I want and if it does race it degenerates into...