servo / pathfinder

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

How to run examples? #375

Closed yaxinlx closed 4 years ago

yaxinlx commented 4 years ago
$ cargo run --example canvas-glutin-minimal --release
error: no example target named `canvas-glutin-minimal`

Sorry, this is a newbie question.

shahreel commented 4 years ago

cargo run --bin canvas_glutin_minimal --release

yaxinlx commented 4 years ago

It woks! Thanks very much for your help.

But why the following one doesn't work to run the demo/native demo?

cargo run --bin native --release
shahreel commented 4 years ago

The app is named demo. Try run:

cargo run --bin demo --release
yaxinlx commented 4 years ago

Many thanks for you help!

So the bin names are retrieved from Cargo.toml files. It is not intuitive sometimes.