knuffel icon indicating copy to clipboard operation
knuffel copied to clipboard

Rust KDL parser and derive implementation

Results 11 knuffel issues
Sort by recently updated
recently updated
newest added

Hi all! It's been a while since @tailhook has been on GitHub, and whilst I don't particularly love the idea of creating a fork, with KDL 2.0 on the horizon...

Bringing in line with https://rust-lang.github.io/api-guidelines/interoperability.html#types-eagerly-implement-common-traits-c-common-traits ! Left out `Display` and `Default`, since those don't make quite as much sense here, though I'm sure someone could make a case for Default...

KDL 2.0.0-draft.3 is now generally available (https://github.com/kdl-org/kdl/pull/286), and with it, we've decided to encourage existing implementations to start working towards 2.0 support and send feedback and suggestions for anything you...

Very simple change, but this brings with it some nice fixes the the GraphicalErrorHandler in `miette` — it also fixes a bug currently present where line and column numbers are...

Most of this is just the commit description, but here's a picture of the sort of diff this change produces on my end: ![image](https://github.com/tailhook/knuffel/assets/6251883/d00d58fc-526b-4be1-89e9-ebf958df82f4) You can see that I used...

Hi @tailhook ! This is a slightly bigger change than my other PR, but fundamentally just enables me to add a `non_empty` tag to `#[knuffel(children(...))]` attributes, guaranteeing that at least...

Hi @tailhook! Just a simple change exposing a couple of AST fields that were previously only `pub(crate)`. When it came to `Literal::Bool`s and `Literal::String`, their internal fields were already available,...

Currently you can force a panic while decoding a `Value` wrapped in a container because all containers delegate `decode` to the default implementation, while `Value` only accepts calling `decode` directly,...

Hello! I would like to parse the following document: ```kdl image "nginx" { reference "docker.io/library/nginx:1.23.4" } image "nginx" reference="docker.io/library/nginx:1.23.4" ``` Imagine that `image` could have 100 files. Or, it could...

e.g. I have ```rust #[derive(knuffel::Decode)] pub struct Config { #[knuffel(children(name = "replace"))] pub replace: Vec, #[knuffel(children(name = "job"))] pub jobs: Vec, } ``` It turns out that a *lot* of...