Skip to content

Commit 76048e1

Browse files
committed
fix build on docs.rs
1 parent 65225cd commit 76048e1

File tree

5 files changed

+31
-17
lines changed

5 files changed

+31
-17
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.6.2]
11+
12+
### Fixed
13+
14+
- Fix build in docs.rs
15+
1016
## [0.6.1]
1117

1218
### Fixed
19+
1320
- Excluded LVGL demos due to crates.io binary size limits
1421

1522
## [0.6.0]
@@ -91,7 +98,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9198

9299
- No (direct) dependency on `clang-rs`
93100

94-
[Unreleased]: https://github.com/rafaelcaricio/lvgl-rs/compare/0.6.1..HEAD
101+
[Unreleased]: https://github.com/rafaelcaricio/lvgl-rs/compare/0.6.2..HEAD
102+
[0.6.2]: https://github.com/rafaelcaricio/lvgl-rs/compare/0.6.1..0.6.2
95103
[0.6.1]: https://github.com/rafaelcaricio/lvgl-rs/compare/0.6.0..0.6.1
96104
[0.6.0]: https://github.com/rafaelcaricio/lvgl-rs/compare/0.5.2..0.6.0
97105
[0.5.2]: https://github.com/rafaelcaricio/lvgl-rs/compare/0.4.0..0.5.2

lvgl-codegen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lvgl-codegen"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
description = "Code generation based on LVGL source code"
55
authors = ["Rafael Caricio <[email protected]>"]
66
readme = "README.md"

lvgl-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "lvgl-sys"
33
description = "Raw bindings to the LVGL C library."
4-
version = "0.6.1"
4+
version = "0.6.2"
55
authors = ["Rafael Caricio <[email protected]>"]
66
edition = "2021"
77
license = "MIT"

lvgl-sys/build.rs

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,22 @@ fn main() {
3131
#[cfg(feature = "rust_timer")]
3232
let timer_shim = vendor.join("include").join("timer");
3333

34-
let current_dir = canonicalize(PathBuf::from(env::var("PWD").unwrap()));
35-
let font_extra_src = {
36-
if let Ok(p) = env::var("LVGL_FONTS_DIR") {
37-
Some(canonicalize(PathBuf::from(p)))
38-
} else if current_dir.join("fonts").exists() {
39-
Some(current_dir.join("fonts"))
40-
} else {
41-
None
42-
}
43-
};
34+
let font_extra_src: Option<PathBuf>;
35+
if let Ok(v) = env::var("PWD") {
36+
let current_dir = canonicalize(PathBuf::from(v));
37+
font_extra_src = {
38+
if let Ok(p) = env::var("LVGL_FONTS_DIR") {
39+
Some(canonicalize(PathBuf::from(p)))
40+
} else if current_dir.join("fonts").exists() {
41+
Some(current_dir.join("fonts"))
42+
} else {
43+
None
44+
}
45+
};
46+
}
47+
else {
48+
font_extra_src = None
49+
}
4450

4551
// Some basic defaults; SDL2 is the only driver enabled in the provided
4652
// driver config by default

lvgl/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "lvgl"
33
description = "LVGL bindings for Rust. A powerful and easy-to-use embedded GUI with many widgets, advanced visual effects (opacity, antialiasing, animations) and low memory requirements (16K RAM, 64K Flash)."
4-
version = "0.6.1"
4+
version = "0.6.2"
55
authors = ["Rafael Caricio <[email protected]>"]
66
edition = "2021"
77
repository = "https://github.com/rafaelcaricio/lvgl-rs"
@@ -12,7 +12,7 @@ keywords = ["littlevgl", "lvgl", "graphical_interfaces"]
1212
build = "build.rs"
1313

1414
[dependencies]
15-
lvgl-sys = { version = "0.6.1", path = "../lvgl-sys" }
15+
lvgl-sys = { version = "0.6.2", path = "../lvgl-sys" }
1616
cty = "0.2.2"
1717
embedded-graphics = { version = "0.7.1", optional = true }
1818
cstr_core = { version = "0.2.6", default-features = false, features = ["alloc"] }
@@ -74,8 +74,8 @@ unsafe_no_autoinit = []
7474
[build-dependencies]
7575
quote = "1.0.23"
7676
proc-macro2 = "1.0.51"
77-
lvgl-codegen = { version = "0.6.1", path = "../lvgl-codegen" }
78-
lvgl-sys = { version = "0.6.1", path = "../lvgl-sys" }
77+
lvgl-codegen = { version = "0.6.2", path = "../lvgl-codegen" }
78+
lvgl-sys = { version = "0.6.2", path = "../lvgl-sys" }
7979

8080
[dev-dependencies]
8181
embedded-graphics-simulator = "0.4.0"

0 commit comments

Comments
 (0)