linebender / piet

An abstraction for 2D graphics.
Apache License 2.0
1.23k stars 95 forks source link

piet-cairo doesn't event pass check #564

Closed porfyr closed 4 months ago

porfyr commented 4 months ago
➜ screen-capture-try git:(master) ✗ cargo check Checking screen-capture-try v0.1.0 (/home/sn/work/screen-capture-try) error[E0432]: unresolved import piet::samples --> src/main.rs:7:12 7 use piet::{samples, RenderContext}; ^^^^^^^ no samples in the root

note: found an item that was configured out --> /home/sn/.cargo/registry/src/index.crates.io-6f17d22bba15001f/piet-0.6.2/src/lib.rs:47:9 | 47 | pub mod samples; | ^^^^^^^ = note: the item is gated behind the samples feature

For more information about this error, try rustc --explain E0432. error: could not compile screen-capture-try (bin "screen-capture-try") due to 1 previous error

porfyr commented 4 months ago

Cargo.toml piet = { version = "0.6.2", features=["samples"] }

then works