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 wheneverreadable-perms
is added without
somewhere in the dependency tree.default-features = false - chmod default = libc
-
Enable setting Permissions to
std::fs::File
andimpl 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 tosrc/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.