Closed Mathieu-Lala closed 1 year ago
The toml parser used in the crate is a bit basic and it looks like your Cargo.toml is quite complicated with its meta-data split in many lines.
I have a suspicion that the problem happens trying to parse array in array
Do you think this could fix it ?
https://github.com/slint-ui/document-features/blob/master/lib.rs#L308
current_table = match table.split_once("]").map(|(t, _)| t.trim()) {
Some(line) => line,
None => continue, // ignore the sequence "\n[(.*)\n"
}
I think we should try to skip all the lines until the end of the array by using get_balanced.
In fact, we should try to call get_balanced even when in other sections, contrary to what this comment say https://github.com/slint-ui/document-features/blob/ba20128b81382fdb40cfbf7aff2c6408a066c236/lib.rs#L322
Thanks for the fix! It worked fine with my crate. Will you publish to crates.io the new version ?
Your wishes have come true :-) 0.2.7 was published
Hi :wave:
I tried to add
document-features
to my project https://github.com/viridIT/vSMTP/compare/develop...doc/feature but I have this error : I believe this is a bug in the parser :bug: