ipetkov / crane

A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.
https://crane.dev
MIT License
969 stars 92 forks source link

Fix bug with comment for inline table key #583

Closed i1i1 closed 7 months ago

i1i1 commented 8 months ago

Motivation

If workspace features dependency and workspace crate uses it, it is always gets merged as regular table (not inline one) so comments ends up in the following position:

[
            # arbitrary
            dependencies.arbitrary ]

Take a look at the test for more info.

Fixes https://github.com/ipetkov/crane/issues/527

Checklist