Build Status Generic badge Generic badge Generic badge

Simpath

A small and simple crate (in the spirit of my "simp*" crates) for search paths, like $PATH and $LD_PATH.

Example

Create a Simpath that loads from the $PATH environment variable using:

let path = simppath::new("PATH");

Then find a file called filename by searching the directories in PATH in order - as a PathBuf let file = path.find("filename");

Platforms

The following platforms are supported and tested in CI * Linux * MacOS * Windows (with the ";" separator character used for parsing paths from environment variables)

Methods

Optional methods

These methods are activated by the "urls" feature, which is included by default.

To remove that code and dependencies disable all default features using the cargo command line option --no-default-features or including default-features = false in your Cargo.toml section for Simpath

Traits

Building

A simple Makefile exists that builds, runs clippy and then runs tests.

Just type make at the command prompt.