Could Jackson be an option? I don't know how complete its TOML support
is, but it could be worth a shot:
https://github.com/FasterXML/jackson-dataformats-text/tree/master/toml
Le 2023-09-25 à 15 h 23, Michael Bien a écrit :
Hi Antonio,
On 21.09.23 19:22, Antonio wrote:
Hi all,
I've just found a bug in the tomlj library [1], which prevents the
rust cluster to properly parse a well formed Cargo.toml document. So
we need an alternate TOML parser for Rust.
I've seen that the author of tomlj is requesting maintainers since
2022, with little success (I've also seen that Laszlo has been curious
about mainteinance [2]).
AFAIK the tomlj library is only used in Rust and ide/languages.toml.
Also I found the grammar at [3] (__ASF__ APLv2 license) seems to work
correctly in this case.
Questions are:
a) Any problem in replacing tomlj with an alternative?
b) Do we prefer:
b.1) To use an external library?
I looked around and library-wise, tomlj seems to be the most updated and
also the only lib which supports toml 1.0 - at least I couldn't find an
alternative.
b.2) To maintain the TOML/ANTLRv4 parser at [3]?
This might be a good option, since grammar files are usually fairly
compact, esp those for config file formats. You think the existing
grammar of the grammar-v4 repo would be able to parse the rust file in
question?
b.3) Anyone wishing to maintain tomlj?
Would be great if the lib would get another maintainer but I can't help
in another project atm unfortunately.
-mbien
Thanks,
Antonio
[1]
https://github.com/tomlj/tomlj/issues/60
[2]
https://github.com/tomlj/tomlj/issues/44
[3]
https://github.com/antlr/grammars-v4/tree/master/toml
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists