Open cheshirex opened 6 years ago
better-toml
currently using toml-node
to parse the file. I will wait until they release a new version which support hexadecimal.
Any news? The new TOML spec has been stabilized and released.
TOML v0.5 has support for hexadecimal, octal and binary numbers. Would it be difficult to change the TOML parser?
How about @iarna/toml? It appears to have all the features you are currently using and has rather comprehensive tests. I could submit a pull request if you'd like.
thanks @toothbrush7777777 for the information, I will check @iana/toml
, its appear to have better error message too.
I also found @ltd/j-toml
which support TOML 0.5
@bungcip Yes, I also found that one. It appears to be even faster than @iana/toml
but apparently doesn't support valid TOML files like this:
[a.b.c]
y = ""
[a]
z = ""
Ping? I see hex being used by cargo deny, but now VS Code highlights some of the configuration as bad.
It's not yet in a formal release, but the TOML master spec allows hexadecimal, octal, and binary integer values. I'm using hex in my project, but better-toml is marking that as an error.
Thanks!