slint/examples/rustwasmtest
Simon Hausmann 1404cb73ae Add support for embedding resources in the rust generator
This is relatively straight-forward via a pass in the compiler to
collect the resources to embed and then use include_bytes! (once per
resource).

What's really annoying is that the rust resource enum can't store a
&'static [u8] because cbindgen doesn't represent that, probably because
the slice representation isn't guaranteed to stay as it is. So instead
this, for now, uses raw pointers.
2020-06-09 22:54:29 +02:00
..
js Add simple rust wasm test 2020-05-13 11:24:51 +02:00
src Add support for embedding resources in the rust generator 2020-06-09 22:54:29 +02:00
static Add simple rust wasm test 2020-05-13 11:24:51 +02:00
.gitignore Ignore the dist directory 2020-05-13 12:07:38 +02:00
build.rs Add support for embedding resources in the rust generator 2020-06-09 22:54:29 +02:00
Cargo.toml Change rust-wasm example to use the separate file compilation 2020-06-09 22:54:29 +02:00
package.json Add simple rust wasm test 2020-05-13 11:24:51 +02:00
webpack.config.js reformat 2020-05-28 17:15:11 +02:00