We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de9c90d commit 9e8dddbCopy full SHA for 9e8dddb
lvgl/Cargo.toml
@@ -73,6 +73,9 @@ nightly = []
73
# function before constructing or using anything LVGL-related.
74
unsafe_no_autoinit = []
75
76
+# This feature is required to use the custom allocator in lvgl (`LV_MEM_CUSTOM=1` in `lv_conf.h`).
77
+custom_allocator = []
78
+
79
[build-dependencies]
80
quote = "1.0.23"
81
proc-macro2 = "1.0.51"
lvgl/src/lib.rs
@@ -97,6 +97,7 @@ pub fn init() {
97
///
98
/// After calling, ensure existing LVGL-related values are not accessed even if
99
/// LVGL is reinitialized.
100
+#[cfg(not(feature = "custom_allocator"))]
101
pub unsafe fn deinit() {
102
unsafe {
103
if IS_INIT {
0 commit comments