pathfinder icon indicating copy to clipboard operation
pathfinder copied to clipboard

How to run examples?

Open yaxinlx opened this issue 6 years ago • 4 comments

$ cargo run --example canvas-glutin-minimal --release
error: no example target named `canvas-glutin-minimal`

Sorry, this is a newbie question.

yaxinlx avatar Jun 27 '20 08:06 yaxinlx

cargo run --bin canvas_glutin_minimal --release

shahreel avatar Jun 27 '20 20:06 shahreel

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

yaxinlx avatar Jun 28 '20 06:06 yaxinlx

The app is named demo. Try run:

cargo run --bin demo --release

shahreel avatar Jun 28 '20 08:06 shahreel

Many thanks for you help!

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

yaxinlx avatar Jun 28 '20 09:06 yaxinlx