Does not work in Windows
selfagency opened this issue · 0 comments
selfagency commented
Cargo installation fails citing could not find _unix_ in _os_
Compiling ripsecrets v0.1.5 (C:\Users\dsieradski\.cargo\git\checkouts\ripsecrets-0fa9e8d7534dec57\ac370a9)
error[E0433]: failed to resolve: could not find `unix` in `os`
--> src\pre_commit.rs:6:14
|
6 | use std::os::unix::fs::PermissionsExt;
| ^^^^ could not find `unix` in `os`
error[E0599]: no method named `set_mode` found for struct `Permissions` in the current scope
--> src\pre_commit.rs:79:11
|
79 | perms.set_mode(perms.mode() | 0o100);
| ^^^^^^^^ method not found in `Permissions`
error[E0599]: no method named `mode` found for struct `Permissions` in the current scope
--> src\pre_commit.rs:79:26
|
79 | perms.set_mode(perms.mode() | 0o100);
| ^^^^ method not found in `Permissions`
Some errors have detailed explanations: E0433, E0599.
For more information about an error, try `rustc --explain E0433`.
error: could not compile `ripsecrets` (bin "ripsecrets") due to 3 previous errors
error: failed to compile `ripsecrets v0.1.5 (https://github.com/sirwart/ripsecrets?branch=main#ac370a97)`, intermediate artifacts can be found at `C:\Users\DSIERA~1\AppData\Local\Temp\cargo-installNnxbIE`