Replies: 1 comment 3 replies
-
Oh, it's finally out! Congrats on the release.
This is very very cool. Guess we don't have to have a big backwards compatibility break after all? I will absolutely try this out when I'm finished with the floating PR. I'll also need to see if I can make it so when the config is KDL v2, it doesn't accept a few deprecated features. |
Beta Was this translation helpful? Give feedback.
-
KDL 2.0.0 has been released!
Along with this new spec release, I've released
[email protected]
, which supports both KDL 1.0.0 and KDL 2.0.0, and is able to translate document text between both versions.This means that Niri would not need to move away from
knuffel
to add 2.0 support: by pulling inkdl-rs
and enabling thev1-fallback
feature, you can basically do something like this:Nothing else would have to change about Niri's code unless you want to do your own heuristics around error management/fallbacks.
kdl-rs
's 2.0 parser is able to collect many syntax errors in a single pass, and so can give richer error messages than either the 1.0 parser (for now), or knuffel's parser.Always happy to answer questions! I hope this is useful to y'all!
Beta Was this translation helpful? Give feedback.
All reactions