Popups may have normal `Item`s as parrent, while all the other
components always have a `DynamicTree` as a parent. So do not
panic when some component ends up with an `Item` as a parent.
Just return `None` instead of panicing.
We probably need to make the focus-handling more aware of
popups eventually, but this stops the panics.
Fixes: #5826, #5830
The test's build.rs invokes the compiler repeatedly with a configuration that enables font embedding. Instead of loading the same font with fontdue repeatedly (slow), store the loaded fonts in a hash table for re-use.
This should not have any impact on single file compilations, but it helps with the screenshot driver test dramatically, bringing down the time of
touch tests/screenshots/build.rs
cargo build -p test-driver-screenshots
on my xps13 linux from 1m26s to 15s.
Enable the use of parallel glyph outline extraction in fontdue.
Brings down the time of
touch tests/screenshots/build.rs
cargo build -p test-driver-screenshots
on my xps13 linux from 3m30s to 1m26s.
This reduces duplicated documentation and fixes two bugs. One minor additional change is that Rust code from the game logic chapter can now safely be copied, because the tiles variable is cloned in the previous step.
Fixes#5825Fixes#5824
Tidy up the main examples/README.md.
All the main examples now live in a table with a thumbnail and description.
Then each project has it's own README.md with more details.
(eg: alt+tab or control+tab)
Failed attempt at fixing #5823
This doesn't fixes it because the problem is that the key event are
forwareded as syntetic events when we gain focus, and they are not in a
order that allow to detect alt+tab
Theyre are no more shared files, so move the files
into vscode and set up a syntax check over there.
That was not possible before as the typescript
compiler would error out on the shared files being
outside its root directory.
- Make sure that in Rust and C++ we also truncate if the properties are
inlined
- Change the interpreter to truncate
This is a redo of commit f5d003d but truncate instead of round
fixes#5689
The simulator build requires the nightly rust toolchain, and
occasionally fails due to upstream changes to the nightly toolchain.
The hardware build does not require the nightly rust toolchain, but
still fails due to upstream nightly toolchain changes.
Move the hardware build to the stable toolchain so that it is not
broken unnecessarily.
Additionally, turn off `fail-fast` so that the nightly failures don't
affect the stable builds.
Fixes#5812.