2013-04-05 23:31:01 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2015-09-09 22:55:16 +00:00
|
|
|
// For simd (currently x86_64/aarch64)
|
|
|
|
#![cfg_attr(any(target_arch = "x86_64", target_arch = "aarch64"), feature(convert))]
|
2015-09-23 21:02:56 +00:00
|
|
|
#![cfg_attr(any(target_os = "linux", target_os = "android"), feature(heap_api))]
|
2015-09-09 22:55:16 +00:00
|
|
|
|
2015-09-23 21:02:56 +00:00
|
|
|
#![feature(alloc)]
|
|
|
|
#![feature(box_syntax)]
|
2015-06-25 18:03:15 +00:00
|
|
|
#![feature(custom_attribute)]
|
2015-06-03 04:48:03 +00:00
|
|
|
#![feature(custom_derive)]
|
2015-06-25 18:03:15 +00:00
|
|
|
#![feature(hashmap_hasher)]
|
2015-07-31 15:43:40 +00:00
|
|
|
#![feature(mpsc_select)]
|
2015-06-25 18:03:15 +00:00
|
|
|
#![feature(plugin)]
|
2015-05-05 14:11:30 +00:00
|
|
|
#![feature(str_char)]
|
2015-08-04 04:40:35 +00:00
|
|
|
#![feature(unique)]
|
2015-06-25 18:03:15 +00:00
|
|
|
#![feature(vec_push_all)]
|
2013-10-22 16:16:17 +00:00
|
|
|
|
2015-03-18 17:25:00 +00:00
|
|
|
#![plugin(plugins)]
|
2015-07-15 20:04:55 +00:00
|
|
|
#![plugin(serde_macros)]
|
2014-09-14 13:56:58 +00:00
|
|
|
|
2015-09-30 21:19:33 +00:00
|
|
|
extern crate app_units;
|
2015-09-23 21:02:56 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate bitflags;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate lazy_static;
|
2015-01-28 01:15:50 +00:00
|
|
|
#[macro_use]
|
2014-04-04 22:52:50 +00:00
|
|
|
extern crate log;
|
2015-09-23 21:02:56 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate profile_traits;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate util;
|
2015-09-23 12:45:18 +00:00
|
|
|
extern crate alloc;
|
2014-03-19 16:35:17 +00:00
|
|
|
extern crate azure;
|
2015-09-23 21:02:56 +00:00
|
|
|
extern crate canvas_traits;
|
|
|
|
|
|
|
|
// Mac OS-specific library dependencies
|
|
|
|
#[cfg(target_os = "macos")] extern crate core_foundation;
|
|
|
|
#[cfg(target_os = "macos")] extern crate core_graphics;
|
|
|
|
#[cfg(target_os = "macos")] extern crate core_text;
|
|
|
|
|
2015-06-19 02:50:22 +00:00
|
|
|
extern crate euclid;
|
2015-09-23 21:02:56 +00:00
|
|
|
extern crate fnv;
|
|
|
|
|
|
|
|
// Linux and Android-specific library dependencies
|
|
|
|
#[cfg(any(target_os = "linux", target_os = "android"))]
|
|
|
|
extern crate fontconfig;
|
|
|
|
#[cfg(any(target_os = "linux", target_os = "android"))]
|
|
|
|
extern crate freetype;
|
|
|
|
|
|
|
|
extern crate gfx_traits;
|
|
|
|
|
|
|
|
// Eventually we would like the shaper to be pluggable, as many operating systems have their own
|
|
|
|
// shapers. For now, however, this is a hard dependency.
|
2015-09-29 21:37:11 +00:00
|
|
|
extern crate harfbuzz_sys as harfbuzz;
|
2015-09-23 21:02:56 +00:00
|
|
|
|
2015-07-25 00:55:05 +00:00
|
|
|
extern crate ipc_channel;
|
2014-03-19 16:35:17 +00:00
|
|
|
extern crate layers;
|
2014-04-27 22:52:39 +00:00
|
|
|
extern crate libc;
|
2015-02-10 10:51:46 +00:00
|
|
|
extern crate msg;
|
2015-09-23 21:02:56 +00:00
|
|
|
extern crate net_traits;
|
2015-05-14 23:00:52 +00:00
|
|
|
extern crate rand;
|
2015-09-23 21:02:56 +00:00
|
|
|
extern crate rustc_serialize;
|
|
|
|
extern crate script_traits;
|
|
|
|
extern crate serde;
|
2015-09-09 22:55:16 +00:00
|
|
|
|
|
|
|
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
|
|
|
|
extern crate simd;
|
|
|
|
|
2015-09-23 21:02:56 +00:00
|
|
|
extern crate skia;
|
2015-06-10 14:23:11 +00:00
|
|
|
extern crate smallvec;
|
2015-04-01 16:00:52 +00:00
|
|
|
extern crate string_cache;
|
2014-03-19 16:35:17 +00:00
|
|
|
extern crate style;
|
2014-11-05 01:12:32 +00:00
|
|
|
extern crate time;
|
2015-09-29 21:37:11 +00:00
|
|
|
extern crate unicode_script;
|
2014-08-09 03:00:27 +00:00
|
|
|
extern crate url;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
2013-04-18 19:53:41 +00:00
|
|
|
|
2014-12-08 17:28:10 +00:00
|
|
|
pub use paint_context::PaintContext;
|
2014-06-05 17:58:44 +00:00
|
|
|
|
2015-09-23 21:02:56 +00:00
|
|
|
// Misc.
|
|
|
|
mod filters;
|
|
|
|
|
2014-12-08 17:28:10 +00:00
|
|
|
// Private painting modules
|
|
|
|
mod paint_context;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
2015-09-23 21:02:56 +00:00
|
|
|
#[deny(unsafe_code)]
|
2015-09-01 14:33:02 +00:00
|
|
|
#[path = "display_list/mod.rs"]
|
2012-11-12 20:08:38 +00:00
|
|
|
pub mod display_list;
|
|
|
|
|
|
|
|
// Fonts
|
|
|
|
pub mod font;
|
2014-07-08 23:31:07 +00:00
|
|
|
pub mod font_cache_task;
|
2015-09-18 20:44:48 +00:00
|
|
|
pub mod font_context;
|
2014-07-08 23:31:07 +00:00
|
|
|
pub mod font_template;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
2015-09-23 21:02:56 +00:00
|
|
|
pub mod paint_task;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
2013-04-18 19:53:41 +00:00
|
|
|
// Platform-specific implementations.
|
2015-09-01 14:33:02 +00:00
|
|
|
#[path = "platform/mod.rs"]
|
2013-04-18 19:53:41 +00:00
|
|
|
pub mod platform;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
|
|
|
// Text
|
2012-12-04 20:23:32 +00:00
|
|
|
#[path = "text/mod.rs"]
|
|
|
|
pub mod text;
|