1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

extern crate crossbeam;

// --- macOS ---

#[cfg(all(target_os = "macos", not(feature = "gtk")))]
#[macro_use]
extern crate objc;
#[cfg(all(target_os = "macos", not(feature = "gtk")))]
extern crate cocoa;
#[cfg(all(target_os = "macos", not(feature = "gtk")))]
extern crate core_graphics;

#[cfg(all(target_os = "macos", not(feature = "gtk")))]
#[path = "cocoa/mod.rs"]
mod cacao;

#[cfg(all(target_os = "macos", not(feature = "gtk")))]
pub use cacao::program;

// --- gtk ---

#[cfg(any(feature = "gtk", not(target_os = "macos")))]
extern crate gtk;

#[cfg(any(feature = "gtk", not(target_os = "macos")))]
#[path = "gtk/mod.rs"]
mod gtk3;

#[cfg(any(feature = "gtk", not(target_os = "macos")))]
pub use gtk3::program;

// --- common ---

#[macro_use]
mod tree;
mod atomic_box;
mod stream;

pub mod dom;