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.
Uh oh!
There was an error while loading. Please reload this page.
-
KDL 2.0.0 has been released!
Along with this new spec release, I've released
kdl-rs@6.0.0, 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
knuffelto add 2.0 support: by pulling inkdl-rsand enabling thev1-fallbackfeature, 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