ihalila / pancurses

A Rust curses library, supports Unix platforms and Windows
MIT License
396 stars 44 forks source link

Cannot build with win32 as feature #46

Closed fivemoreminix closed 6 years ago

fivemoreminix commented 6 years ago

I am attempting to compile the fireworks.rs example. It compiles and runs great on normal win32a. I don't need the win32 feature at the moment, I was just curious. I also tested using the newtest.rs example, also.

Cargo.toml

[dependencies]
pancurses = { version = "0.15.0", features = ["win32"] }
rand = "0.5.1"

Output

> cargo run
   Compiling pancurses v0.15.0
error: cannot find macro `warn!` in this scope
   --> C:\Users\lukew\.cargo\registry\src\github.com-1ecc6299db9ec823\pancurses-0.15.0\src\windows\mod.rs:167:45
    |
167 |                                             warn!("Decoding input as UTF-16 failed. The two values that could not be decoded were {} and {}.", first_error.unpaired_surrogate(), second_error.unpaired_surrogate());
    |                                             ^^^^

error: aborting due to previous error

error: Could not compile `pancurses`.

To learn more, run the command again with --verbose.

Great library btw.

ihalila commented 6 years ago

I just released 0.16, it should fix this. The log crate wasn't being imported when using the win32 feature was enabled.