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-02-13 12:33:49 +00:00
|
|
|
#![feature(alloc)]
|
|
|
|
#![feature(box_syntax)]
|
|
|
|
#![feature(collections)]
|
|
|
|
#![feature(core)]
|
|
|
|
#![feature(plugin)]
|
|
|
|
#![feature(rustc_private)]
|
|
|
|
#![feature(std_misc)]
|
2015-05-05 14:11:30 +00:00
|
|
|
#![feature(str_char)]
|
2013-10-22 16:16:17 +00:00
|
|
|
|
2015-03-18 17:25:00 +00:00
|
|
|
#![plugin(plugins)]
|
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;
|
|
|
|
|
2014-03-19 16:35:17 +00:00
|
|
|
extern crate azure;
|
2015-02-12 00:24:45 +00:00
|
|
|
#[macro_use] extern crate bitflags;
|
2014-03-19 16:35:17 +00:00
|
|
|
extern crate collections;
|
|
|
|
extern crate geom;
|
|
|
|
extern crate layers;
|
2014-04-27 22:52:39 +00:00
|
|
|
extern crate libc;
|
2014-03-19 16:35:17 +00:00
|
|
|
extern crate stb_image;
|
|
|
|
extern crate png;
|
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-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.
|
2013-08-20 20:39:48 +00:00
|
|
|
mod buffer_map;
|
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;
|