diff --git a/.gitmodules b/.gitmodules index dcab5ca..62a88ac 100644 --- a/.gitmodules +++ b/.gitmodules @@ -6,4 +6,4 @@ url = https://github.com/kseo/sfnt2woff.git [submodule "vendor/woff2/source"] path = vendor/woff2/source - url = https://github.com/google/woff2.git + url = https://github.com/copies/woff2.git diff --git a/Cargo.toml b/Cargo.toml index 47a1f88..fdad77b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "woff" -version = "0.6.1" -edition = "2021" +version = "0.6.2" +edition = "2024" license = "Apache-2.0 OR MIT" authors = ["Ivan Ukhov "] description = "The package provides a converter for Web Open Font Format." diff --git a/src/version1/ffi.rs b/src/version1/ffi.rs index b2cad5a..57b4047 100644 --- a/src/version1/ffi.rs +++ b/src/version1/ffi.rs @@ -1,4 +1,4 @@ -extern "C" { +unsafe extern "C" { pub fn woffEncode( sfntData: *const u8, sfntLen: u32, diff --git a/src/version2/ffi.rs b/src/version2/ffi.rs index 33f2176..1926163 100644 --- a/src/version2/ffi.rs +++ b/src/version2/ffi.rs @@ -1,4 +1,4 @@ -extern "C" { +unsafe extern "C" { pub fn ComputeTTFToWOFF2Size( data: *const u8, length: libc::size_t, diff --git a/vendor/woff2/source b/vendor/woff2/source index 0f4d304..8ae687e 160000 --- a/vendor/woff2/source +++ b/vendor/woff2/source @@ -1 +1 @@ -Subproject commit 0f4d304faa1c62994536dc73510305c7357da8d4 +Subproject commit 8ae687ef2aafce19082cccf356070e146d2fe666