Use branch reference in deps
This commit is contained in:
parent
fb3ed95106
commit
1cf1a0d16f
3 changed files with 9 additions and 1 deletions
3
Cargo.lock
generated
3
Cargo.lock
generated
|
@ -398,6 +398,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "lvgl"
|
||||
version = "0.4.0"
|
||||
source = "git+https://github.com/rafaelcaricio/lvgl-rs.git?branch=emscripten#76d485b68a25d57cfe70d54a25f0569a6ef9b61e"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"cstr_core",
|
||||
|
@ -412,6 +413,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "lvgl-codegen"
|
||||
version = "0.4.0"
|
||||
source = "git+https://github.com/rafaelcaricio/lvgl-rs.git?branch=emscripten#76d485b68a25d57cfe70d54a25f0569a6ef9b61e"
|
||||
dependencies = [
|
||||
"Inflector",
|
||||
"lazy_static",
|
||||
|
@ -434,6 +436,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "lvgl-sys"
|
||||
version = "0.4.0"
|
||||
source = "git+https://github.com/rafaelcaricio/lvgl-rs.git?branch=emscripten#76d485b68a25d57cfe70d54a25f0569a6ef9b61e"
|
||||
dependencies = [
|
||||
"bindgen",
|
||||
"cc",
|
||||
|
|
|
@ -12,6 +12,6 @@ lto = true
|
|||
|
||||
[dependencies]
|
||||
cstr_core = { version = "0.2.0", features = ["alloc"] }
|
||||
lvgl = { version = "0.4", path = "../lvgl-rs/lvgl" }
|
||||
lvgl = { version = "0.4", git = "https://github.com/rafaelcaricio/lvgl-rs" , branch = "emscripten" }
|
||||
embedded-graphics = "0.6"
|
||||
embedded-graphics-simulator = "0.2"
|
||||
|
|
|
@ -28,6 +28,11 @@ https://emscripten.org/docs/getting_started/downloads.html
|
|||
$ embuilder.py build sdl2
|
||||
```
|
||||
|
||||
- Compile the example project:
|
||||
```
|
||||
cargo +nightly build --target=wasm32-unknown-emscripten
|
||||
```
|
||||
|
||||
References:
|
||||
- https://puddleofcode.com/story/definitive-guide-to-rust-sdl2-and-emscriptem
|
||||
|
||||
|
|
Loading…
Reference in a new issue