Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
This updates all dependencies to their latest major versions.
  • Loading branch information
chrisduerr committed Oct 24, 2024
1 parent e9c6fa3 commit affd737
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- MSRV changed to 1.77.0
- **Breaking** yeslogic-fontconfig-sys bumped to 6.0.0
- **Breaking** freetype-rs bumped to 0.37.0

## 0.8.0

Expand Down
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ foreign-types = "0.5"
log = "0.4"

[target.'cfg(not(any(target_os = "macos", windows)))'.dependencies]
yeslogic-fontconfig-sys = "5.0.0"
freetype-rs = "0.36.0"
yeslogic-fontconfig-sys = "6.0.0"
freetype-rs = "0.37.0"

[target.'cfg(not(any(target_os = "macos", windows)))'.build-dependencies]
pkg-config = "0.3"

[target.'cfg(target_os = "macos")'.dependencies]
core-foundation = "0.9.3"
core-text = "20.1.0"
core-graphics = "0.23.1"
core-foundation = "0.10.0"
core-text = "21.0.0"
core-graphics = "0.24.0"
core-foundation-sys = "0.8.4"
once_cell = "1.12"
objc2 = "0.5.1"
Expand Down
7 changes: 1 addition & 6 deletions src/ft/fc/pattern.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::ffi::{CStr, CString};
use std::fmt;
use std::mem;
use std::path::PathBuf;
use std::ptr::{self, NonNull};
use std::str;
Expand Down Expand Up @@ -45,11 +44,7 @@ impl<'a> StringPropertyIter<'a> {
};

if result == FcResultMatch {
// Transmute here is to extend lifetime of the str to that of the iterator.
//
// Potential unsafety? What happens if the pattern is modified while this ptr is
// borrowed out?
unsafe { mem::transmute(CStr::from_ptr(value as *const c_char).to_str().ok()?) }
unsafe { CStr::from_ptr(value as *const c_char).to_str().ok() }
} else {
None
}
Expand Down
1 change: 0 additions & 1 deletion src/ft/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,6 @@ impl FreeTypeLoader {
fn new() -> Result<FreeTypeLoader, Error> {
let library = Library::init()?;

#[cfg(ft_set_default_properties_available)]
unsafe {
// Initialize default properties, like user preferred interpreter.
freetype_sys::FT_Set_Default_Properties(library.raw());
Expand Down

0 comments on commit affd737

Please sign in to comment.