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/. */
|
|
|
|
|
2014-08-03 07:41:10 +04:00
|
|
|
#![feature(globs, macro_rules, phase, unsafe_destructor)]
|
2013-10-22 20:16:17 +04:00
|
|
|
|
2014-09-14 17:56:58 +04:00
|
|
|
#![deny(unused_imports, unused_variable)]
|
|
|
|
|
2014-04-28 02:52:39 +04:00
|
|
|
#![feature(phase)]
|
2014-06-28 05:25:07 +04:00
|
|
|
#[phase(plugin, link)]
|
2014-04-05 02:52:50 +04:00
|
|
|
extern crate log;
|
|
|
|
|
2014-06-05 21:58:44 +04:00
|
|
|
extern crate debug;
|
2014-03-19 20:35:17 +04:00
|
|
|
extern crate azure;
|
|
|
|
extern crate collections;
|
|
|
|
extern crate geom;
|
|
|
|
extern crate layers;
|
2014-04-28 02:52:39 +04:00
|
|
|
extern crate libc;
|
2014-07-02 04:06:14 +04:00
|
|
|
extern crate native;
|
|
|
|
extern crate rustrt;
|
2014-03-19 20:35:17 +04:00
|
|
|
extern crate stb_image;
|
|
|
|
extern crate png;
|
2014-09-08 10:33:09 +04:00
|
|
|
extern crate serialize;
|
2014-06-28 05:25:07 +04:00
|
|
|
#[phase(plugin)]
|
2014-09-23 16:53:37 +04:00
|
|
|
extern crate "plugins" as servo_plugins;
|
2014-09-21 02:35:08 +04:00
|
|
|
extern crate "net" as servo_net;
|
2014-06-28 05:25:07 +04:00
|
|
|
#[phase(plugin, link)]
|
2014-09-21 02:35:08 +04:00
|
|
|
extern crate "util" as servo_util;
|
|
|
|
extern crate "msg" as servo_msg;
|
2014-03-19 20:35:17 +04:00
|
|
|
extern crate style;
|
|
|
|
extern crate sync;
|
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-03-19 20:35:17 +04:00
|
|
|
#[cfg(target_os="linux")] #[cfg(target_os="android")] extern crate fontconfig;
|
|
|
|
#[cfg(target_os="linux")] #[cfg(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-06-05 21:58:44 +04:00
|
|
|
pub use render_context::RenderContext;
|
|
|
|
|
2013-12-13 05:58:21 +04:00
|
|
|
// Private rendering modules
|
2013-08-17 02:46:03 +04:00
|
|
|
mod render_context;
|
2012-11-13 00:08:38 +04:00
|
|
|
|
|
|
|
// Rendering
|
|
|
|
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;
|
|
|
|
pub mod render_task;
|
|
|
|
|
|
|
|
// 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;
|
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;
|
2012-11-13 00:08:38 +04:00
|
|
|
|