slint-ui / slint

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

NPM pre-build binary #1991

Closed ogoffart closed 9 months ago

ogoffart commented 1 year ago

(Discussed in https://github.com/slint-ui/slint/discussions/1969 )

Find a way to have pre-build binary on npm instead of compiling the Rust Slint.

tronical commented 9 months ago

Tried with slint-ui@nightly on Linux (x64), macOS (x64), and Windows (x64).

sigmaSd commented 9 months ago

Awesome seems to work with deno as well

import * as slint from "npm:slint-ui@1.4.0-nightly.202411718";

let ui = slint.loadFile("main.slint");
let demo = new ui.Demo();

await demo.run();

![Uploading image.png…]()

FloVanGH commented 9 months ago

@sigmaSd yes deno with Slint works really well :-). I have good experience with it https://codeberg.org/flovansl/co_sl/src/branch/main/apps/coop_local/deno.