mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Remove the dependency to compile_msg
This commit is contained in:
parent
45f9ff09e6
commit
ffba8564c8
|
@ -14,9 +14,6 @@ default = ["window"]
|
||||||
window = []
|
window = []
|
||||||
headless = []
|
headless = []
|
||||||
|
|
||||||
[dependencies.compile_msg]
|
|
||||||
git = "https://github.com/huonw/compile_msg"
|
|
||||||
|
|
||||||
[dependencies.gl_generator]
|
[dependencies.gl_generator]
|
||||||
git = "https://github.com/bjz/gl-rs"
|
git = "https://github.com/bjz/gl-rs"
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
//!
|
//!
|
||||||
//! By default only `window` is enabled.
|
//! By default only `window` is enabled.
|
||||||
|
|
||||||
#[phase(plugin)] extern crate compile_msg;
|
|
||||||
#[phase(plugin)] extern crate gl_generator;
|
#[phase(plugin)] extern crate gl_generator;
|
||||||
|
|
||||||
extern crate gl_common;
|
extern crate gl_common;
|
||||||
|
@ -49,6 +48,9 @@ pub use events::*;
|
||||||
|
|
||||||
use std::default::Default;
|
use std::default::Default;
|
||||||
|
|
||||||
|
#[cfg(all(not(target_os = "windows"), not(target_os = "linux"), not(target_os = "macos"), not(target_os = "android")))]
|
||||||
|
use this_platform_is_not_supported;
|
||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
#[path="win32/mod.rs"]
|
#[path="win32/mod.rs"]
|
||||||
mod winimpl;
|
mod winimpl;
|
||||||
|
@ -64,9 +66,6 @@ mod winimpl;
|
||||||
|
|
||||||
mod events;
|
mod events;
|
||||||
|
|
||||||
#[cfg(all(not(target_os = "windows"), not(target_os = "linux"), not(target_os = "macos"), not(target_os = "android")))]
|
|
||||||
compile_error!("Only the `windows`, `linux` and `macos` platforms are supported")
|
|
||||||
|
|
||||||
/// Identifier for a monitor.
|
/// Identifier for a monitor.
|
||||||
#[cfg(feature = "window")]
|
#[cfg(feature = "window")]
|
||||||
pub struct MonitorID(winimpl::MonitorID);
|
pub struct MonitorID(winimpl::MonitorID);
|
||||||
|
|
Loading…
Reference in a new issue