directories-rs
boxxy
directories-rs | boxxy | |
---|---|---|
5 | 10 | |
693 | 1,220 | |
2.7% | - | |
4.0 | 8.6 | |
8 months ago | 9 days ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
directories-rs
-
Rip – Rust crate to resolve and install Python packages
There are even libraries for that!
https://github.com/dirs-dev/directories-rs
-
Use the XDG Base Directory Specification
At least for rust applications of your own, you can use the library https://github.com/dirs-dev/directories-rs to follow XDG on Linux as well as platform conventions on Mac and Windows.
-
[ANN] Released `config-finder`, a crate to easily help your CLI app find all its config files
I suppose I shouldn't be surprised to see this pop up about two weeks after there was no response to this reply on #47: Support for using ~/.config on Mac for command line apps on directories-rs:
- "directories" crate version 4.0.0 broken on MacOS
boxxy
-
What is the most useful project you've ever worked on?
I made a tool to control where Linux applications put their files via bind mounts and environment variables: https://github.com/queer/boxxy
I've heard that it's made it as far as university HPC clusters to help control iffy code written by students; I'm glad I managed to make that stuff a bit easier for the people operating them.
-
Show HN: peckish, a CLI/Rust library for Linux package manipulation
This is a tool I’ve been working on for the last ~6 months. It was born out of frustration trying to package boxxy[1] for different distros.
This was originally to be presented at RustConf 2023 in a few days, under the talk “Repackage the World!,” but unfortunately my health took a sudden turn for the worse and I’m no longer able to give the talk.
peckish IS NOT a replacement for distro-specific packaging tools, and its packages WILL NOT be compliant with every distribution’s standards for packages.
peckish IS:
- a way to make a quick-and-dirty packages for distributing a program
- a CLI/library for manipulating the contents of Linux packages
The core abstraction is an in-memory filesystem behind an async std::fs-like facade[2], allowing packages to be manipulated with more-intuitive random-access I/O instead of putting up with (nested) streaming archive formats. This facade also is used for ex. enabling easier archive manipulation[3], a library for copying between facade implementations[4], and more. This bets that most packages will never be larger than memory, which in my testing is a safe bet even with Docker images as inputs.
Sorry for adding more YAML to the world :P
[1] https://github.com/queer/boxxy
[2] https://github.com/queer/floppy-disk
[3] https://github.com/queer/flop
[4] https://github.com/queer/disk-drive
-
Temporary symlink in shell - "named process substitution" - rename a file without creating a copy/symlink on the disk?
boxxy
-
Is there a way to prepend a command for every slurm job submitted?
I am not sure if you know boxxy: it is a handy tool that uses linux userspace namespaces to wrap requests for a file to a proper (configurable) location.
-
Use the XDG Base Directory Specification
macOS + systemd? If on Linux this tool allows you to move config dir and file locations transparently. Pretty neat. https://github.com/queer/boxxy
- Show HN: boxxy – Control where Linux programs put files, without symlinks
What are some alternatives?
dirs - a low-level library that provides config/cache/data paths, following the respective conventions on Linux, macOS and Windows
xdg-ninja - A shell script which checks your $HOME for unwanted files and directories.