docs.rs failed to build freetype-rs-0.37.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
freetype-rs-0.36.0
freetype-rs
Rust bindings for FreeType library
Requirements
- Cargo: We use Cargo to compile the project.
- FreeType2 development libraries: For installation instructions see freetype-sys.
If the building fails, then it is likely that pkg-config does not find a FreeType library it can bind to. Use the feature "bundled" to build a static version of the library (requires a C compiler):
[dependencies]
freetype-rs = { version = "*", features = ["bundled"] }
Build
Clone this repo then run
cd freetype-rs
cargo build
Examples
To build examples, use cargo test
. They are all built in ./target/debug/examples/*
.
To run examples, use cargo run --example name
, for example:
cargo run --example single_glyph examples/assets/FiraSans-Regular.ttf A