summaryrefslogtreecommitdiffstats
path: root/font
diff options
context:
space:
mode:
authorKirill Chibisov <wchibisovkirill@gmail.com>2019-10-23 22:17:09 +0300
committerChristian Duerr <contact@christianduerr.com>2019-10-23 21:17:09 +0200
commitd76bb0c69793eda42d0e46d4a7c7218b8a3a4a37 (patch)
treea2c25ac330209d936fa2846d367669f0ed4c97a5 /font
parent9e0b9d5de1b8fe2d9d8ed80f73b4ad0fda171f22 (diff)
Update dependencies
Diffstat (limited to 'font')
-rw-r--r--font/Cargo.toml4
-rw-r--r--font/src/ft/fc/char_set.rs2
-rw-r--r--font/src/ft/fc/config.rs2
-rw-r--r--font/src/ft/fc/font_set.rs2
-rw-r--r--font/src/ft/fc/object_set.rs2
-rw-r--r--font/src/ft/fc/pattern.rs2
6 files changed, 7 insertions, 7 deletions
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;
}