-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS: TOML with Table values produces error on output #194
Comments
A workaround for now is to use the order preserving linked-hash-map instead of the |
Sounds like a reasonable change, maybe you want to make a PR? I don't think any logic should depend on object key order within |
Order preservation is not enough when you are doing something like |
The Problem
Trying to output the data structure in TOML format (with
-T
option) produces an error on macOS High Sierra:Investigations
Doing a web search with that error message led me to this source file of the
toml
crate project, that is responsible for serialising the data structure to a TOML file, that states:And indeed, the error occurred only when there were tables to be serialised.
Solution
As stated in the serialisation source file, a solution is to make use of the
tables_last
function. I am currently figuring out, how I need to adapt therq/src/value/toml.rs
source file to do exactly that.Any help is appreciated, especially as I have started learning Rust only a few days ago.
The text was updated successfully, but these errors were encountered: