2013-04-06 03:31:01 +04: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 15:33:49 +03:00
|
|
|
#![feature(alloc)]
|
|
|
|
#![feature(box_syntax)]
|
|
|
|
#![feature(collections)]
|
|
|
|
#![feature(core)]
|
2015-03-21 02:00:44 +03:00
|
|
|
#![cfg_attr(any(target_os="linux", target_os = "android"), feature(io))]
|
2015-02-13 15:33:49 +03:00
|
|
|
#![feature(plugin)]
|
|
|
|
#![feature(rustc_private)]
|
|
|
|
#![feature(std_misc)]
|
|
|
|
#![feature(unicode)]
|
|
|
|
#![feature(unsafe_destructor)]
|
2013-10-22 20:16:17 +04:00
|
|
|
|
2015-03-18 20:25:00 +03:00
|
|
|
#![plugin(plugins)]
|
2014-09-14 17:56:58 +04:00
|
|
|
|
2015-01-28 04:15:50 +03:00
|
|
|
#[macro_use]
|
2014-04-05 02:52:50 +04:00
|
|
|
extern crate log;
|
|
|
|
|
2014-03-19 20:35:17 +04:00
|
|
|
extern crate azure;
|
2015-02-12 03:24:45 +03:00
|
|
|
#[macro_use] extern crate bitflags;
|
2014-03-19 20:35:17 +04:00
|
|
|
extern crate collections;
|
|
|
|
extern crate geom;
|
|
|
|
extern crate layers;
|
2014-04-28 02:52:39 +04:00
|
|
|
extern crate libc;
|
2014-03-19 20:35:17 +04:00
|
|
|
extern crate stb_image;
|
|
|
|
extern crate png;
|
2015-05-01 04:02:33 +03:00
|
|
|
extern crate profile_traits;
|
2014-11-17 02:39:27 +03:00
|
|
|
extern crate script_traits;
|
2015-02-17 17:30:50 +03:00
|
|
|
extern crate "rustc-serialize" as rustc_serialize;
|
2014-11-04 04:30:35 +03:00
|
|
|
extern crate unicode;
|
2015-04-03 22:00:46 +03:00
|
|
|
extern crate net_traits;
|
2015-01-28 04:15:50 +03:00
|
|
|
#[macro_use]
|
2015-01-29 15:12:49 +03:00
|
|
|
extern crate util;
|
2015-02-10 13:51:46 +03:00
|
|
|
extern crate msg;
|
2015-04-01 19:00:52 +03:00
|
|
|
extern crate string_cache;
|
2014-03-19 20:35:17 +04:00
|
|
|
extern crate style;
|
2015-02-03 02:57:51 +03:00
|
|
|
extern crate skia;
|
2014-11-05 04:12:32 +03:00
|
|
|
extern crate time;
|
2014-08-09 07:00:27 +04:00
|
|
|
extern crate url;
|
2012-11-13 00:08:38 +04:00
|
|
|
|
2013-04-18 23:53:41 +04: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 20:35:17 +04:00
|
|
|
extern crate harfbuzz;
|
2013-04-18 23:53:41 +04:00
|
|
|
|
2013-08-23 08:00:42 +04:00
|
|
|
// Linux and Android-specific library dependencies
|
2014-11-13 06:48:31 +03: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 23:53:41 +04:00
|
|
|
|
|
|
|
// Mac OS-specific library dependencies
|
2014-03-19 20:35:17 +04: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 23:53:41 +04:00
|
|
|
|
2014-12-08 20:28:10 +03:00
|
|
|
pub use paint_context::PaintContext;
|
2014-06-05 21:58:44 +04:00
|
|
|
|
2014-12-08 20:28:10 +03:00
|
|
|
// Private painting modules
|
|
|
|
mod paint_context;
|
2012-11-13 00:08:38 +04:00
|
|
|
|
2014-12-08 20:28:10 +03:00
|
|
|
// Painting
|
2012-11-13 00:08:38 +04:00
|
|
|
pub mod color;
|
2014-06-06 00:46:28 +04:00
|
|
|
#[path="display_list/mod.rs"]
|
2012-11-13 00:08:38 +04:00
|
|
|
pub mod display_list;
|
2014-12-08 20:28:10 +03:00
|
|
|
pub mod paint_task;
|
2012-11-13 00:08:38 +04:00
|
|
|
|
|
|
|
// Fonts
|
|
|
|
pub mod font;
|
2013-10-17 02:37:42 +04:00
|
|
|
pub mod font_context;
|
2014-07-09 03:31:07 +04:00
|
|
|
pub mod font_cache_task;
|
|
|
|
pub mod font_template;
|
2012-11-13 00:08:38 +04:00
|
|
|
|
|
|
|
// Misc.
|
2013-08-21 00:39:48 +04:00
|
|
|
mod buffer_map;
|
2015-01-09 19:03:48 +03:00
|
|
|
mod filters;
|
2012-11-13 00:08:38 +04:00
|
|
|
|
2013-04-18 23:53:41 +04:00
|
|
|
// Platform-specific implementations.
|
|
|
|
#[path="platform/mod.rs"]
|
|
|
|
pub mod platform;
|
2012-11-13 00:08:38 +04:00
|
|
|
|
|
|
|
// Text
|
2012-12-05 00:23:32 +04:00
|
|
|
#[path = "text/mod.rs"]
|
|
|
|
pub mod text;
|