Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation fails for some std-widgets in no_std #2510

Closed
medhefgo opened this issue Apr 8, 2023 · 1 comment
Closed

Compilation fails for some std-widgets in no_std #2510

medhefgo opened this issue Apr 8, 2023 · 1 comment

Comments

@medhefgo
Copy link
Contributor

medhefgo commented Apr 8, 2023

At least these widgets will cause compilation to fail under no_std: CheckBox, ComboBox, SpinBox, StandardTableView

Excerpt of the compilation failure:

error[E0433]: failed to resolve: use of undeclared type `Path`
   --> /home/medhefgo/slint/target/x86_64-unknown-uefi/debug/build/uefi-demo-a34c6c6fb9018316/out/demo.rs:838:16
    |
838 |              + r#Path :: FIELD_OFFSETS . r#elements) . apply_pin (_self) . set ({
    |                ^^^^^^ use of undeclared type `Path`

This is easy to reproduce with #2509 by simply adding any affected widget to the demo.slint file.

@tronical
Copy link
Member

Yes indeed, this is basically the same issue as #2026 : The software renderer does not support Path rendering at the moment, which is why the Path element is not included in the no_std builds. Once the software renderer supports it, we can remove the #[cfg(feature = "std")] guard from mod path; in items.rs.

Closing this as a duplicate for now (but a very legit issue, of course :)

@tronical tronical closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants