Skip to content

Commit

Permalink
Use crates.io releases for winit and glutin
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Nov 10, 2022
1 parent b0e8baf commit 33d3ce1
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 128 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ members = [
"examples/todos",
"examples/tooltip",
"examples/tour",
"examples/url_handler",
"examples/websocket",
]

Expand Down
10 changes: 0 additions & 10 deletions examples/url_handler/Cargo.toml

This file was deleted.

71 changes: 0 additions & 71 deletions examples/url_handler/src/main.rs

This file was deleted.

2 changes: 0 additions & 2 deletions glutin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ version = "0.4"

[dependencies.glutin]
version = "0.29"
git = "https://github.com/iced-rs/glutin"
rev = "da8d291486b4c9bec12487a46c119c4b1d386abf"

[dependencies.iced_native]
version = "0.6"
Expand Down
10 changes: 0 additions & 10 deletions glutin/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,16 +318,6 @@ async fn run_instance<A, E, C>(

context.window().request_redraw();
}
event::Event::PlatformSpecific(event::PlatformSpecific::MacOS(
event::MacOS::ReceivedUrl(url),
)) => {
use iced_native::event;
events.push(iced_native::Event::PlatformSpecific(
event::PlatformSpecific::MacOS(event::MacOS::ReceivedUrl(
url,
)),
));
}
event::Event::UserEvent(message) => {
messages.push(message);
}
Expand Down
21 changes: 0 additions & 21 deletions native/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,6 @@ pub enum Event {

/// A touch event
Touch(touch::Event),

/// A platform specific event
PlatformSpecific(PlatformSpecific),
}

/// A platform specific event
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum PlatformSpecific {
/// A MacOS specific event
MacOS(MacOS),
}

/// Describes an event specific to MacOS
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum MacOS {
/// Triggered when the app receives an URL from the system
///
/// _**Note:** For this event to be triggered, the executable needs to be properly [bundled]!_
///
/// [bundled]: https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW19
ReceivedUrl(String),
}

/// The status of an [`Event`] after being processed.
Expand Down
2 changes: 0 additions & 2 deletions winit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ thiserror = "1.0"

[dependencies.winit]
version = "0.27"
git = "https://github.com/iced-rs/winit.git"
rev = "940457522e9fb9f5dac228b0ecfafe0138b4048c"

[dependencies.iced_native]
version = "0.6"
Expand Down
11 changes: 0 additions & 11 deletions winit/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,17 +382,6 @@ async fn run_instance<A, E, C>(

window.request_redraw();
}
event::Event::PlatformSpecific(event::PlatformSpecific::MacOS(
event::MacOS::ReceivedUrl(url),
)) => {
use iced_native::event;

events.push(iced_native::Event::PlatformSpecific(
event::PlatformSpecific::MacOS(event::MacOS::ReceivedUrl(
url,
)),
));
}
event::Event::UserEvent(message) => {
messages.push(message);
}
Expand Down

0 comments on commit 33d3ce1

Please sign in to comment.