Skip to content

Commit

Permalink
Add features list to crate docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Aug 19, 2023
1 parent c9cae88 commit 1ac1069
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions harfbuzz-sys/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//! # harfbuzz-sys
//!
//! This crate provides raw bindings to the [HarfBuzz](https://harfbuzz.github.io/)
//! text shaping library.
//!
//! ## Features
//!
//! - `freetype` - Enables bindings to the FreeType font engine. (Enabled by default.)
//! - `coretext` - Enables bindings to the CoreText font engine. (Apple platforms only) (Enabled by default.)
//! - `directwrite` - Enables bindings to the DirectWrite font engine. (Windows only) (Enabled by default.)

#[cfg(all(target_vendor = "apple", feature = "coretext"))]
pub mod coretext;

Expand Down
6 changes: 6 additions & 0 deletions harfbuzz/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@

//! HarfBuzz is a text shaping engine. It solves the problem of selecting
//! and positioning glyphs from a font given a Unicode string.
//!
//! ## Features
//!
//! - `freetype` - Enables bindings to the FreeType font engine. (Enabled by default.)
//! - `coretext` - Enables bindings to the CoreText font engine. (Apple platforms only) (Enabled by default.)
//! - `directwrite` - Enables bindings to the DirectWrite font engine. (Windows only) (Enabled by default.)

#![warn(missing_docs)]
#![deny(
Expand Down

0 comments on commit 1ac1069

Please sign in to comment.