Cargo Features

[dependencies]
readable-perms = { version = "0.1.3", default-features = false, features = ["chmod", "speedup_hack_stable"] }
default = chmod

The chmod feature is set by default whenever readable-perms is added without default-features = false somewhere in the dependency tree.

chmod default = libc

Enable setting Permissions to std::fs::File and impl AsRef<Path> directly

speedup_hack_stable

Ignore this, it is for regenerating the lookup table used on stable (needed due to lack of matching in const fn). It is already included in this repo. If you really want to rebuild it, cargo test will output it to src/stable/mod.rs lol.

Affects readable-perms::generate_build_map

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

libc chmod