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-06-25 18:03:15 +00:00
|
|
|
#![feature(arc_weak)]
|
2015-07-04 07:01:25 +00:00
|
|
|
#![cfg_attr(any(target_os="linux", target_os = "android"), feature(box_raw))]
|
2015-02-13 12:33:49 +00:00
|
|
|
#![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-04 07:01:25 +00:00
|
|
|
#![cfg_attr(any(target_os="linux", target_os = "android"), feature(heap_api))]
|
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-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-01-28 01:15:50 +00:00
|
|
|
#[macro_use]
|
2014-04-04 22:52:50 +00:00
|
|
|
extern crate log;
|
2015-07-15 20:04:55 +00:00
|
|
|
extern crate serde;
|
2014-04-04 22:52:50 +00:00
|
|
|
|
2014-03-19 16:35:17 +00:00
|
|
|
extern crate azure;
|
2015-02-12 00:24:45 +00:00
|
|
|
#[macro_use] extern crate bitflags;
|
2015-06-10 14:23:11 +00:00
|
|
|
extern crate fnv;
|
2015-06-19 02:50:22 +00:00
|
|
|
extern crate euclid;
|
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-05-29 03:45:34 +00:00
|
|
|
#[macro_use]
|
2015-05-01 01:02:33 +00:00
|
|
|
extern crate profile_traits;
|
2014-11-16 23:39:27 +00:00
|
|
|
extern crate script_traits;
|
2015-05-05 14:11:30 +00:00
|
|
|
extern crate rustc_serialize;
|
2015-04-03 19:00:46 +00:00
|
|
|
extern crate net_traits;
|
2015-01-28 01:15:50 +00:00
|
|
|
#[macro_use]
|
2015-01-29 12:12:49 +00:00
|
|
|
extern crate util;
|
2015-02-10 10:51:46 +00:00
|
|
|
extern crate msg;
|
2015-05-14 23:00:52 +00:00
|
|
|
extern crate rand;
|
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;
|
2015-02-02 23:57:51 +00:00
|
|
|
extern crate skia;
|
2014-11-05 01:12:32 +00:00
|
|
|
extern crate time;
|
2014-08-09 03:00:27 +00:00
|
|
|
extern crate url;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
2015-05-20 20:42:06 +00:00
|
|
|
extern crate gfx_traits;
|
|
|
|
extern crate canvas_traits;
|
|
|
|
|
2013-04-18 19:53:41 +00:00
|
|
|
// 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.
|
2014-03-19 16:35:17 +00:00
|
|
|
extern crate harfbuzz;
|
2013-04-18 19:53:41 +00:00
|
|
|
|
2013-08-23 04:00:42 +00:00
|
|
|
// Linux and Android-specific library dependencies
|
2014-11-13 03:48:31 +00:00
|
|
|
#[cfg(any(target_os="linux", target_os = "android"))]
|
|
|
|
extern crate fontconfig;
|
|
|
|
|
|
|
|
#[cfg(any(target_os="linux", target_os = "android"))]
|
|
|
|
extern crate freetype;
|
2013-04-18 19:53:41 +00:00
|
|
|
|
|
|
|
// Mac OS-specific library dependencies
|
2014-03-19 16:35:17 +00:00
|
|
|
#[cfg(target_os="macos")] extern crate core_foundation;
|
|
|
|
#[cfg(target_os="macos")] extern crate core_graphics;
|
|
|
|
#[cfg(target_os="macos")] extern crate core_text;
|
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
|
|
|
|
2014-12-08 17:28:10 +00:00
|
|
|
// Private painting modules
|
|
|
|
mod paint_context;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
2014-06-05 20:46:28 +00:00
|
|
|
#[path="display_list/mod.rs"]
|
2012-11-12 20:08:38 +00:00
|
|
|
pub mod display_list;
|
2014-12-08 17:28:10 +00:00
|
|
|
pub mod paint_task;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
|
|
|
// Fonts
|
|
|
|
pub mod font;
|
2013-10-16 22:37:42 +00:00
|
|
|
pub mod font_context;
|
2014-07-08 23:31:07 +00:00
|
|
|
pub mod font_cache_task;
|
|
|
|
pub mod font_template;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
|
|
|
// Misc.
|
2015-01-09 16:03:48 +00:00
|
|
|
mod filters;
|
2012-11-12 20:08:38 +00:00
|
|
|
|
2013-04-18 19:53:41 +00:00
|
|
|
// Platform-specific implementations.
|
|
|
|
#[path="platform/mod.rs"]
|
|
|
|
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;
|