#Compiling for windows error after adding "users" crate
19 messages · Page 1 of 1 (latest)
compiling error
i couldnt send it in file sorry
and theres my code
but i think its more about that crate
usually these kind of really long errors happen because rust tries to continue (so find more errors) after an error occurs, but sometimes its weird and gets a lot of them
so you want to look at the first error
--> /home/mateusz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/users-0.11.0/src/base.rs:36:14
|
36 | use std::os::unix::ffi::OsStrExt;
| ^^^^ could not find `unix` in `os````
ik why it not working
it supports linux only
thx
that crate should really add a compile_error! for non-unix users
well, i found better option
for that
it should work on both https://docs.rs/whoami/latest/whoami/
Crate for getting the user’s username, realname and environment.
nevermind
xD'
if you can find one that is windows only you can also use that