slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.93k stars 565 forks source link

0.2 release docs wrong build.rs command #934

Closed jannes closed 2 years ago

jannes commented 2 years ago

https://slint-ui.com/releases/0.2.0/docs/rust/slint/#the-slint-code-in-external-files-is-compiled-with-buildrs

should be

fn main() {
    slint_build::compile("ui/hello.slint").unwrap();
}

not

fn main() {
    slint::compile("ui/hello.slint").unwrap();
}
ogoffart commented 2 years ago

You're absolutely right. Well spotted. Thank you for reporting