summaryrefslogtreecommitdiff
path: root/font/src/lib.rs
diff options
context:
space:
mode:
authorDavid Hewitt <1939362+davidhewitt@users.noreply.github.com>2020-01-15 22:14:07 +0000
committerChristian Duerr <contact@christianduerr.com>2020-01-15 23:14:07 +0100
commitf54aabfe9295902b6bbe0db115186ca26f1956b0 (patch)
treeaebd591cfa1d14ec2a111064e501bb0a4d431145 /font/src/lib.rs
parent7d1edf01c2d16eedbbfb652b1e57db0f819f12c0 (diff)
downloadalacritty-f54aabfe9295902b6bbe0db115186ca26f1956b0.tar.gz
alacritty-f54aabfe9295902b6bbe0db115186ca26f1956b0.zip
Update font crate to 2018 edition
Diffstat (limited to 'font/src/lib.rs')
-rw-r--r--font/src/lib.rs27
1 files changed, 1 insertions, 26 deletions
diff --git a/font/src/lib.rs b/font/src/lib.rs
index 8fd0f628..f5dc0191 100644
--- a/font/src/lib.rs
+++ b/font/src/lib.rs
@@ -20,31 +20,6 @@
#![deny(clippy::all, clippy::if_not_else, clippy::enum_glob_use, clippy::wrong_pub_self_convention)]
-#[cfg(not(any(target_os = "macos", windows)))]
-extern crate fontconfig;
-#[cfg(not(any(target_os = "macos", windows)))]
-extern crate freetype;
-
-#[cfg(target_os = "macos")]
-extern crate core_foundation;
-#[cfg(target_os = "macos")]
-extern crate core_foundation_sys;
-#[cfg(target_os = "macos")]
-extern crate core_graphics;
-#[cfg(target_os = "macos")]
-extern crate core_text;
-#[cfg(target_os = "macos")]
-extern crate euclid;
-
-extern crate libc;
-
-#[cfg(not(any(target_os = "macos", windows)))]
-#[macro_use]
-extern crate foreign_types;
-
-#[cfg_attr(not(windows), macro_use)]
-extern crate log;
-
use std::fmt;
use std::hash::{Hash, Hasher};
use std::ops::{Add, Mul};
@@ -59,7 +34,7 @@ pub use ft::{Error, FreeTypeRasterizer as Rasterizer};
#[cfg(windows)]
pub mod directwrite;
#[cfg(windows)]
-pub use crate::directwrite::{DirectWriteRasterizer as Rasterizer, Error};
+pub use directwrite::{DirectWriteRasterizer as Rasterizer, Error};
// If target is macos, reexport everything from darwin
#[cfg(target_os = "macos")]