slint/api/rs/macros
Olivier Goffart 13ce62d9b2
slint macro: Do not rely on the debug of Span to know if token are adjacent
We need to know if two Span are adjacent to distinguish between
`foo-bar` and `foo - bar`  (one identifier, or a minus expression)

From Rust 1.88 it is possible to use the line and column information
from Span.

The eventual goal is also to address https://github.com/slint-ui/slint/issues/685
unfortunately, rust-analyzer still do not implement these in their macro
server
2025-09-15 11:20:56 +02:00
..
LICENSES Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
Cargo.toml slint macro: Use Span::local_file when Rust is 1.88 2025-09-12 13:27:31 +02:00
lib.rs slint macro: Do not rely on the debug of Span to know if token are adjacent 2025-09-15 11:20:56 +02:00
README.md Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00

NOTE: This library is an internal crate for 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.