servo / webrender

A GPU-based renderer for the web
https://doc.servo.org/webrender/
Mozilla Public License 2.0
3.11k stars 276 forks source link

error of private package #3653

Open ghost opened 5 years ago

ghost commented 5 years ago

orange@orange:~/work/node-webrender$ cargo run Compiling node-webrender v0.1.0 (/home/orange/work/node-webrender) error[E0603]: module units is private --> src/main.rs:9:21 | 9 | use webrender::api::units::*; | ^^^^^

cargo.toml

[dependencies] webrender ="0.60.0"

kvark commented 5 years ago

I believe in 0.60 version the units are re-exported at the root of the API crate, so instead you'd do use webrender::api::{SomeUnit, AnotherUnit, etc}