simconnect-rust icon indicating copy to clipboard operation
simconnect-rust copied to clipboard

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

Open Serpent03 opened this issue 1 year ago • 4 comments

Error log:

image

My cargo.toml:

image

Serpent03 avatar Jun 06 '24 10:06 Serpent03

Am I missing something obvious here?

Serpent03 avatar Jun 06 '24 10:06 Serpent03

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 avatar Jun 22 '24 08:06 BitsAndDroids

@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" }

BitsAndDroids avatar Jun 22 '24 09:06 BitsAndDroids

@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.

Serpent03 avatar Jun 26 '24 10:06 Serpent03