summaryrefslogtreecommitdiffstats
path: root/third_party/rust/freetype/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/freetype/src/lib.rs')
-rw-r--r--third_party/rust/freetype/src/lib.rs32
1 files changed, 32 insertions, 0 deletions
diff --git a/third_party/rust/freetype/src/lib.rs b/third_party/rust/freetype/src/lib.rs
new file mode 100644
index 0000000000..39f65055cd
--- /dev/null
+++ b/third_party/rust/freetype/src/lib.rs
@@ -0,0 +1,32 @@
+// Copyright 2013 The Servo Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+#![crate_name = "freetype"]
+#![crate_type = "lib"]
+#![crate_type = "dylib"]
+#![crate_type = "rlib"]
+
+#![allow(non_snake_case)]
+#![allow(non_camel_case_types)]
+#![allow(non_upper_case_globals)]
+
+#[cfg(feature = "freetype-sys")]
+extern crate freetype_sys;
+extern crate libc;
+
+pub type FT_Error = ::std::os::raw::c_int;
+
+#[inline]
+pub fn succeeded(error: FT_Error) -> bool {
+ error == freetype::FT_Err_Ok as FT_Error
+}
+
+#[allow(improper_ctypes)] // https://github.com/rust-lang/rust/issues/34798
+pub mod freetype;
+pub mod tt_os2;