slint/internal/compiler
Tobias Hunger 312d091a1d live-preview: Improve handling of cached files
The idea of the live-preview is that it never causes disk
access itself, the LSP side handles all that for it.

With this in mind:

* Keep source code of invalidated files in the cache. This
  way we will see whether we need to refresh the UI after the
  LSP has read the data back from disk. This avoids quite
  a bit of rerendering just because an unchanged buffer was
  closed in the editor (e.g. because the editor switched buffers!)

* Always return `Some` from our file open fallback so that the
  compiler does not fall back to reading data from disk

* Do not try to render if the main file has no source code yet.
  The LSP will tell us about the sources in time
2024-11-27 16:37:09 +01:00
..
generator Experimental support for MenuBar 2024-11-20 09:25:37 +01:00
LICENSES Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
llr Avoid inlining @image-url() expressions that can be expensive due to cache misses 2024-11-27 09:10:26 +01:00
lookup Replace compiler dependency on css-color-parser crate 2024-07-29 13:13:53 +02:00
parser Fix parsing of unfinished import statement 2024-10-22 09:35:46 +02:00
parser-test-macro API review of the slint interpreter Compiler api 2024-07-05 17:20:08 +02:00
passes compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
tests compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
widgets Szecket/cupertino colours (#6801) 2024-11-22 08:18:27 +13:00
build.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
builtin_macros.rs added min/max support for rem (#6842) 2024-11-20 10:19:28 +00:00
builtins.slint windows: added skip_taskbar (#6911) 2024-11-27 09:55:11 +00:00
Cargo.toml Bundle translations (#6661) 2024-10-29 15:07:15 +01:00
diagnostics.rs LSP: record dependencies and invalid all dependents when a dependencies changes 2024-11-14 14:35:22 +01:00
embedded_resources.rs Signed DistanceField font rendering in swrenderer 2024-10-23 09:12:30 +02:00
expression_tree.rs compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
fileaccess.rs Widget style: simplify -light/-dark handling 2024-08-20 16:55:15 +02:00
generator.rs bundled translation: Better error reporting 2024-11-19 21:34:42 +01:00
langtype.rs compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
layout.rs Reduce SmolStr <-> &str conversions and copies (#6688) 2024-11-19 10:07:16 +01:00
lexer.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
lib.rs LSP: record dependencies and invalid all dependents when a dependencies changes 2024-11-14 14:35:22 +01:00
literals.rs Use SmolStr in more places of the compiler infrastructure 2024-10-17 18:04:58 +02:00
llr.rs Bundle translations (#6661) 2024-10-29 15:07:15 +01:00
load_builtins.rs compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
lookup.rs Reduce SmolStr <-> &str conversions and copies (#6688) 2024-11-19 10:07:16 +01:00
namedreference.rs Reduce SmolStr <-> &str conversions and copies (#6688) 2024-11-19 10:07:16 +01:00
object_tree.rs Callback arguments names is no longer experimental 2024-11-21 09:53:17 +01:00
parser.rs Use SmolStr in more places of the compiler infrastructure 2024-10-17 18:04:58 +02:00
passes.rs Experimental support for MenuBar 2024-11-20 09:25:37 +01:00
pathutils.rs Use SmolStr for parts of pathutils to remove temporary allocations 2024-10-17 18:04:58 +02:00
README.md Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
typeloader.rs live-preview: Improve handling of cached files 2024-11-27 16:37:09 +01:00
typeregister.rs compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01: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.