My goal is to disallow other users on a Unix system to read the content of the file.
How do I set file permissions in Linux while still allowing the program to compile for Windows?
Compiling for Unix machine, I can do this:
use std::os::unix::fs::PermissionsExt;
fs::set_permissions("/path", fs::Permissions::from_mode(0o655)).unwrap();
But this will not compile on Windows. How can I work around that?