slint/internal/compiler
Simon Hausmann ef5377baea Fix the image cache with rust generated code and debug builds
We use `const` for the embedded data, which doesn't guarantee a fixed location in memory.

For the image cache when embedding (encoded) image data, we rely on a fixed address.

I observed that in debug builds of the slide puzzle, the embedded data is not always
reported to be at the same address, presumably due to inlining. This makes
the theme switching a bit slower and the cache less efficient.

This patch fixes that by using static instead of const, to guarantee a fixed location in memory.

(This was not observed in release builds, but in theory it could happen there as well?)
2022-08-17 09:43:33 +02:00
..
generator Fix the image cache with rust generated code and debug builds 2022-08-17 09:43:33 +02:00
LICENSES Fix LICENSES symlinks 2022-02-09 17:05:47 +01:00
llr Change slint enum values to be PascalCase in rust 2022-07-22 12:23:52 +02:00
parser LSP: Fix auto-completion of @-macros 2022-05-19 19:22:56 +02:00
parser-test-macro Bump version number to 0.2.6 2022-07-06 09:58:14 +00:00
passes Remove unnecessary collect in lower_property_to_element 2022-08-17 08:39:10 +02:00
tests Workaround for issue #1461 2022-08-17 07:49:05 +02:00
widgets Fix the AboutSlint in fluent style with dark style desktop 2022-07-22 12:23:36 +02:00
build.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
builtin_macros.rs Make mod() a macro that can take generic types instead of just integer 2022-07-11 17:49:28 +02:00
builtins.slint Revive support for rotation of elements 2022-08-11 10:34:41 +02:00
Cargo.toml Bump MSRV to 1.60 2022-07-26 09:20:52 +02:00
diagnostics.rs LSP: fetch the file content from cache instead of from disk to compute the line number 2022-06-02 21:45:50 +02:00
embedded_resources.rs swrenderer: Optimize image drawing by using premultiplied colors 2022-06-14 11:23:02 +02:00
expression_tree.rs Make mod() a macro that can take generic types instead of just integer 2022-07-11 17:49:28 +02:00
fileaccess.rs Scan for style files in the include directories 2022-02-15 13:55:50 +01:00
generator.rs Change slint enum values to be PascalCase in rust 2022-07-22 12:23:52 +02:00
langtype.rs Change slint enum values to be PascalCase in rust 2022-07-22 12:23:52 +02:00
layout.rs C++: implement Window::on_close_requested 2022-03-17 14:49:12 +01:00
lexer.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
lib.rs Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
literals.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
llr.rs Fix a bunch of documentation warnings 2022-04-26 12:47:34 +02:00
load_builtins.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
lookup.rs Make mod() a macro that can take generic types instead of just integer 2022-07-11 17:49:28 +02:00
namedreference.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
object_tree.rs Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
parser.rs Fix compiler warning about usage of deprecated method 2022-06-04 10:23:32 +02:00
passes.rs Remove unnecessary collect in lower_property_to_element 2022-08-17 08:39:10 +02:00
README.md Change the Url from sixtyfps.io to slint-ui.com 2022-02-08 08:52:46 +01:00
typeloader.rs VSCode web extension: load files from the vscode API 2022-06-02 16:21:07 +02:00
typeregister.rs Revive support for rotation of elements 2022-08-11 10:34:41 +02:00

The Slint Compiler Library

NOTE: This library is an internal crate of the Slint project. This crate should not be used directly by applications using Slint. You should use the slint crate instead.

WARNING: This crate does not follow the semver convention for versioning and can only be used with version = "=x.y.z" in Cargo.toml.