error[E0433]: failed to resolve: could not find windows_core in the list of imported crates
--> tests\event_test\src\lib.rs:4:1
4
#[implement(IUIAutomationEventHandler)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find windows_core in the list of imported crates
= note: this error originates in the attribute macro implement (in Nightly builds, run with -Z macro-backtrace for more info)
Crate manifest
[package]
name = "event_test"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies.windows]
version = "0.56.0"
features = [
"implement",
"UI_UIAutomation",
"Win32_UI_Accessibility",
]
Crate code
use windows::core::*;
use windows::Win32::UI::Accessibility::*;
#[implement(IUIAutomationEventHandler)]
pub struct MyEventHandler {
}
impl IUIAutomationEventHandler_Impl for MyEventHandler {
fn HandleAutomationEvent(&self,sender:Option<&IUIAutomationElement>,eventid:UIA_EVENT_ID) -> windows::core::Result<()> {
todo!()
}
}
Summary
windows_core
in the list of imported crates --> tests\event_test\src\lib.rs:4:1windows_core
in the list of imported crates= note: this error originates in the attribute macro
implement
(in Nightly builds, run with -Z macro-backtrace for more info)Crate manifest
Crate code