servo / pathfinder

A fast, practical GPU rasterizer for fonts and vector graphics
Apache License 2.0
3.54k stars 198 forks source link

cargo-c example from the README does not work #486

Closed flupke closed 2 years ago

flupke commented 2 years ago

I tried to build the C bindings from master following the README instructions but got this error:

$ cargo cinstall --destdir=/tmp/pathfinder-destdir --manifest-path c/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /home/flupke/tmp/pathfinder/examples/canvas_webgl_minimal/Cargo.toml
workspace: /home/flupke/tmp/pathfinder/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /home/flupke/tmp/pathfinder/web_canvas/Cargo.toml
workspace: /home/flupke/tmp/pathfinder/Cargo.toml
Error: CliError { error: Some(Package `pathfinder_c v0.1.0 (/home/flupke/tmp/pathfinder/c)` does not have the feature `capi`), exit_code: 101 }

I'm using rust nightly, freshly installed with asdf:

$ rustc --version
rustc 1.59.0-nightly (e012a191d 2022-01-06)
$ cargo --version
cargo 1.59.0-nightly (358e79fe5 2022-01-04)
flupke commented 2 years ago

It's fixed by https://github.com/servo/pathfinder/pull/484