lib.rs (1421B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 //! A glyph rasterizer for webrender 6 //! 7 //! ## Overview 8 //! 9 //! ## Usage 10 //! 11 12 #![allow(unknown_lints, mismatched_lifetime_syntaxes)] 13 14 mod gamma_lut; 15 mod rasterizer; 16 mod telemetry; 17 mod types; 18 19 pub mod profiler; 20 21 pub use rasterizer::*; 22 pub use types::*; 23 24 #[macro_use] 25 extern crate malloc_size_of_derive; 26 #[macro_use] 27 extern crate tracy_rs; 28 #[macro_use] 29 extern crate log; 30 #[macro_use] 31 extern crate lazy_static; 32 #[macro_use] 33 extern crate smallvec; 34 35 #[cfg(any(feature = "serde"))] 36 #[macro_use] 37 extern crate serde; 38 39 extern crate malloc_size_of; 40 41 pub mod platform { 42 #[cfg(any(target_os = "macos", target_os = "ios"))] 43 pub use crate::platform::macos::font; 44 #[cfg(any(target_os = "android", all(unix, not(any(target_os = "ios", target_os = "macos")))))] 45 pub use crate::platform::unix::font; 46 #[cfg(target_os = "windows")] 47 pub use crate::platform::windows::font; 48 49 #[cfg(any(target_os = "ios", target_os = "macos"))] 50 pub mod macos { 51 pub mod font; 52 } 53 #[cfg(any(target_os = "android", all(unix, not(any(target_os = "macos", target_os = "ios")))))] 54 pub mod unix { 55 pub mod font; 56 } 57 #[cfg(target_os = "windows")] 58 pub mod windows { 59 pub mod font; 60 } 61 }