Skip to content
Discussion options

You must be logged in to vote

I understand what the problem is now.
I added

winapi = { version = "=0.3.9", features = ["std"]}

and now it compiles correctly.

In winapi,

pub mod ctypes {
#[cfg(feature = "std")]
pub use std::os::raw::c_void;
#[cfg(not(feature = "std"))]
pub enum c_void {}

Only when the "std" feature is enabled can it compile correctly.
The deno library doesn't explicitly declare this feature, but it may have been implicitly enabled due to features from some other dependencies.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Aobanana-chan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant