#Compiling for windows error after adding "users" crate

19 messages · Page 1 of 1 (latest)

latent mist
#

compiling error

#

i couldnt send it in file sorry

#

and theres my code

#

but i think its more about that crate

weary bay
#

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````
latent mist
#

it supports linux only

#

thx

weary bay
#

that crate should really add a compile_error! for non-unix users

latent mist
#

for that

#

nevermind

#

xD'

weary bay
#

if you can find one that is windows only you can also use that