Module anon_home

Source
Available on crate feature anon_home only.
Expand description

Replace the home-directory in a filename with ${HOME} or %UserProfile%

In some privacy-sensitive applications, we want to lower the amount of personally identifying information in our logs. In such environments, it’s good to avoid logging the actual value of the home directory, since those frequently identify the user.

Structs§

AnonHomePath
A wrapper for Path which, when displayed, replaces the home directory with a symbolic reference.

Constants§

HOME_SUBSTITUTION 🔒
The string that we use to represent our home directory in a compacted path.

Statics§

HOMEDIRS 🔒
Cached value of our observed home directory.

Traits§

PathExt
An extension trait for Path.

Functions§

default_homedirs 🔒
Return a list of home directories in official and canonical forms.