Skip to content

Commit

Permalink
refactor: use windows instead of winapi (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDog896 committed Jun 16, 2024
1 parent 6895d26 commit a6157a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions harfbuzz-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ core-graphics = { version = "0.23", optional = true }
core-text = { version = "20", optional = true }
foreign-types = { version = "0.5", optional = true }

[target.'cfg(target_family = "windows")'.dependencies.winapi]
version = "0.3"
[target.'cfg(target_family = "windows")'.dependencies.windows]
version = "0.57"
optional = true
features = ["dwrite"]
features = ["Win32_Graphics_DirectWrite"]

[dependencies.freetype-sys]
version = "0.20.1"
Expand All @@ -44,5 +44,5 @@ optional = true
default = ["coretext", "directwrite", "freetype"]
bundled = []
coretext = ["core-graphics", "core-text", "foreign-types"]
directwrite = ["winapi"]
directwrite = ["windows"]
freetype = ["freetype-sys"]
2 changes: 1 addition & 1 deletion harfbuzz-sys/src/directwrite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use crate::hb_face_t;

use winapi::um::dwrite::IDWriteFontFace;
use windows::Win32::Graphics::DirectWrite::IDWriteFontFace;

extern "C" {
/// This requires that the `directwrite` feature is enabled.
Expand Down

0 comments on commit a6157a6

Please sign in to comment.