From d76bb0c69793eda42d0e46d4a7c7218b8a3a4a37 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Wed, 23 Oct 2019 22:17:09 +0300 Subject: Update dependencies --- font/Cargo.toml | 4 ++-- font/src/ft/fc/char_set.rs | 2 +- font/src/ft/fc/config.rs | 2 +- font/src/ft/fc/font_set.rs | 2 +- font/src/ft/fc/object_set.rs | 2 +- font/src/ft/fc/pattern.rs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) (limited to 'font') diff --git a/font/Cargo.toml b/font/Cargo.toml index a8460585..163e582d 100644 --- a/font/Cargo.toml +++ b/font/Cargo.toml @@ -8,12 +8,12 @@ license = "Apache-2.0" [dependencies] euclid = "0.20" libc = "0.2" -foreign-types = "0.4" +foreign-types = "0.5" log = "0.4" [target.'cfg(not(any(target_os = "macos", windows)))'.dependencies] servo-fontconfig = "0.4.0" -freetype-rs = "0.19" +freetype-rs = "0.23" [target.'cfg(target_os = "macos")'.dependencies] core-foundation = "0.6" diff --git a/font/src/ft/fc/char_set.rs b/font/src/ft/fc/char_set.rs index 9d71fea4..42c25b06 100644 --- a/font/src/ft/fc/char_set.rs +++ b/font/src/ft/fc/char_set.rs @@ -19,7 +19,7 @@ use super::ffi::FcCharSetCreate; use super::ffi::{FcCharSet, FcCharSetAddChar, FcCharSetDestroy}; foreign_type! { - pub type CharSet { + pub unsafe type CharSet { type CType = FcCharSet; fn drop = FcCharSetDestroy; } diff --git a/font/src/ft/fc/config.rs b/font/src/ft/fc/config.rs index cc3b5e52..46a3a934 100644 --- a/font/src/ft/fc/config.rs +++ b/font/src/ft/fc/config.rs @@ -17,7 +17,7 @@ use super::ffi::{FcConfig, FcConfigDestroy, FcConfigGetCurrent, FcConfigGetFonts use super::{FontSetRef, SetName}; foreign_type! { - pub type Config { + pub unsafe type Config { type CType = FcConfig; fn drop = FcConfigDestroy; } diff --git a/font/src/ft/fc/font_set.rs b/font/src/ft/fc/font_set.rs index e280201b..632c80b0 100644 --- a/font/src/ft/fc/font_set.rs +++ b/font/src/ft/fc/font_set.rs @@ -21,7 +21,7 @@ use super::{ConfigRef, ObjectSetRef, PatternRef}; use super::ffi::{FcFontSet, FcFontSetDestroy, FcFontSetList}; foreign_type! { - pub type FontSet { + pub unsafe type FontSet { type CType = FcFontSet; fn drop = FcFontSetDestroy; } diff --git a/font/src/ft/fc/object_set.rs b/font/src/ft/fc/object_set.rs index 4ec15feb..1cc7e114 100644 --- a/font/src/ft/fc/object_set.rs +++ b/font/src/ft/fc/object_set.rs @@ -19,7 +19,7 @@ use super::ffi::{FcObjectSet, FcObjectSetAdd, FcObjectSetCreate, FcObjectSetDest use foreign_types::ForeignTypeRef; foreign_type! { - pub type ObjectSet { + pub unsafe type ObjectSet { type CType = FcObjectSet; fn drop = FcObjectSetDestroy; } diff --git a/font/src/ft/fc/pattern.rs b/font/src/ft/fc/pattern.rs index b6eceed8..149a45b1 100644 --- a/font/src/ft/fc/pattern.rs +++ b/font/src/ft/fc/pattern.rs @@ -326,7 +326,7 @@ impl_derived_property_iter! { } foreign_type! { - pub type Pattern { + pub unsafe type Pattern { type CType = FcPattern; fn drop = FcPatternDestroy; } -- cgit v1.2.3