Function coop::import_paths
source · pub fn import_paths() -> HashMap<String, PathBuf>
Expand description
Provides the coop
library paths used by slint-build to make them accessible through @coop
in Slint.
ⓘ
fn main() {
slint_build::compile_with_config(
"ui/hello.slint",
slint_build::CompilerConfiguration::new().with_library_paths(coop::import_paths()),
)
.unwrap();
}
Import coop
library in ui/main.slint
import { Button } from "@coop";