dotstore 0.1.0

Create dot directories in common system paths
Documentation
  • Coverage
  • 100%
    21 out of 21 items documented2 out of 21 items with examples
  • Size
  • Source code size: 28.07 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.87 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Tyrannican

Dotstore

Create dot directories (e.g. /home/user/.path) in common system directories.

Install

cargo add dotstore

Usage

use dotstore;

fn main() -> std::io::Result<()> {
    // Create a new directory called `/home/user/.barracuda`
    // The `.` is automatically appended
    let project_dir = dotstore::home_store("barracuda")?;

    // Create a new directory called `/home/user/.config/.editor`
    let editor_dir = dotstore::config_store("editor")?;

    // Create a new directory called `/home/user/workspace/middle-earth/.eregion`
    let custom_dir = dotstore::custom_store("/home/user/workspace/middle-earth", "eregion")?;

    Ok(())
}