Sequal32 / simconnect-rust

SimConnect bindings for rust.
MIT License
32 stars 13 forks source link

Getting E0412 (cannot find function in scope) while trying to do cargo build. #19

Open Serpent03 opened 4 months ago

Serpent03 commented 4 months ago

Error log:

image

My cargo.toml:

image

Serpent03 commented 4 months ago

Am I missing something obvious here?

BitsAndDroids commented 3 months ago

I started encountering something similar out of nowhere last week on Github Actions (not locally). If I find the solution I'll post an update here.

BitsAndDroids commented 3 months ago

@Serpent03 issued a pr https://github.com/Sequal32/simconnect-rust/pull/20. I'm not 100% sure @Sequal32 is still active. If he isn't, you can import my fork in your project. Would love to hear if it fixes the problem for you as well.

My fork can be imported by importing the crate like this:

simconnect = { git = "https://github.com/BitsAndDroids/simconnect-rust.git", branch = "master" }
Serpent03 commented 3 months ago

@Serpent03 issued a pr #20. I'm not 100% sure @Sequal32 is still active. If he isn't, you can import my fork in your project. Would love to hear if it fixes the problem for you as well.

My fork can be imported by importing the crate like this:

simconnect = { git = "https://github.com/BitsAndDroids/simconnect-rust.git", branch = "master" }

Thanks a lot! New to Rust, so wasn't sure what was the cause of the error at all. Really appreciated.