sux-rs
sux-rs copied to clipboard
`TmpDir` needs customization
At least on Archlinux, /tmp is a tempfs and hence in RAM, and limited in size to half the available memory. Solaris and Fedora also do this apparently.
For me to use SigStore I'd like to provide a custom directory for the temporary files.
https://github.com/vigna/sux-rs/blob/e081b427f99eeb5ce127dc74c5c03cd0862912c2/src/utils/sig_store.rs#L348
iirc it can be customized with the TMPDIR env var
oh right; that may be sufficient indeed. Would be good to document this.
yeah its in std::env::tmp_dir but I forget every time
Yes, I think of doing it every time and then I forget. It might be useful to have a settable temp dir tho.