$ cargo build --lib
Compiling systray v0.2.0 (file:///Users/z/Projects/Rust/systray-rs)
error[E0061]: this function takes 0 parameters but 1 parameter was supplied
--> src/lib.rs:66:37
|
66 | match api::api::Window::new(event_tx) {
| ^^^^^^^^ expected 0 parameters
|
::: src/api/cocoa/mod.rs
|
8 | / pub fn new() -> Result<Window, SystrayError> {
9 | | Err(SystrayError::NotImplementedError)
10 | | }
| |_____- defined here
error: no method named `add_menu_entry` found for type `api::api::Window` in the current scope
--> src/lib.rs:80:37
|
80 | if let Err(e) = self.window.add_menu_entry(idx, item_name) {
| ^^^^^^^^^^^^^^
error: no method named `add_menu_separator` found for type `api::api::Window` in the current scope
--> src/lib.rs:90:37
|
90 | if let Err(e) = self.window.add_menu_separator(idx) {
| ^^^^^^^^^^^^^^^^^^
error: no method named `set_icon_from_file` found for type `api::api::Window` in the current scope
--> src/lib.rs:98:21
|
98 | self.window.set_icon_from_file(file)
| ^^^^^^^^^^^^^^^^^^
error: no method named `set_icon_from_resource` found for type `api::api::Window` in the current scope
--> src/lib.rs:102:21
|
102 | self.window.set_icon_from_resource(resource)
| ^^^^^^^^^^^^^^^^^^^^^^
error: no method named `shutdown` found for type `api::api::Window` in the current scope
--> src/lib.rs:106:21
|
106 | self.window.shutdown()
| ^^^^^^^^
error: aborting due to 6 previous errors
error: Could not compile `systray`.
To learn more, run the command again with --verbose.