-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
488 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,30 @@ | ||
// For js! macro. | ||
#![recursion_limit = "1024"] | ||
|
||
#[cfg(windows)] | ||
pub mod windows; | ||
#[cfg(windows)] | ||
pub use crate::windows::*; | ||
|
||
#[cfg(target_os = "linux")] | ||
pub mod linux; | ||
#[cfg(target_os = "linux")] | ||
pub use crate::linux::*; | ||
|
||
#[cfg(target_os = "emscripten")] | ||
pub mod emscripten; | ||
#[cfg(target_os = "emscripten")] | ||
pub use crate::emscripten::*; | ||
#[cfg(target_os = "emscripten")] | ||
#[macro_use] | ||
extern crate stdweb; | ||
|
||
#[cfg(all(target_arch = "wasm32", target_os = "unknown"))] | ||
pub mod wasm; | ||
#[cfg(all(target_arch = "wasm32", target_os = "unknown"))] | ||
pub use crate::wasm::*; | ||
|
||
#[cfg(not(any( | ||
windows, | ||
target_os = "linux", | ||
target_os = "emscripten", | ||
all(target_arch = "wasm32", target_os = "unknown") | ||
)))] | ||
pub mod other; | ||
#[cfg(not(any( | ||
windows, | ||
target_os = "linux", | ||
target_os = "emscripten", | ||
all(target_arch = "wasm32", target_os = "unknown") | ||
)))] | ||
pub use crate::other::*; | ||
cfg_if::cfg_if! { | ||
if #[cfg(windows)] { | ||
mod windows; | ||
pub use self::windows::*; | ||
} else if #[cfg(target_os = "linux")] { | ||
mod linux; | ||
pub use self::linux::*; | ||
} else if #[cfg(target_os = "emscripten")] { | ||
mod emscripten; | ||
pub use self::emscripten::*; | ||
#[macro_use] | ||
extern crate stdweb; | ||
} else if #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] { | ||
cfg_if::cfg_if! { | ||
if #[cfg(feature = "wasm-web")] { | ||
mod wasm_web; | ||
pub use self::wasm_web::*; | ||
} else { | ||
mod wasm_unknown; | ||
pub use self::wasm_unknown::*; | ||
} | ||
} | ||
} else { | ||
mod other; | ||
pub use self::other::*; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.