Open cpdean opened 1 year ago
Ah sorry I see this issue is actually coming from ansi-parser v0.8.0
Ah sorry I see this issue is actually coming from
ansi-parser v0.8.0
Yep, this issue stems from nom 4.x
pulled in transitively by ansi-parser 0.8
.
There is an open, draft merge request upstream, but neither the MR nor the repo seems to have seen any activity since ~1y ago.
Since I do have worked with nom
a lot before, I'll might take a look at it.
Besides that .. looking at the current usage of the ansi-parser
crate, it might be even possible to get by without it. Only a small subset is used anyway, and parsing out these sequences isn't a lot of work (as can be evidently seen when looking at the source of the ansi-parser
crate itself).
Should still be fine for some time though.
I agree, I'm not very happy with the current state of ansi-parser
. We're using a pretty old version (though there has been some development on the gitlab page since), and the logic should be simple enough to re-implement.
I'd still ideally make this as a separate crate (either a fork of ansi-parser or something new) than having the ansi implementation literally in cursive - makes it easier to re-use, and easy to switch out if needed.
This doesn't seem to be an issue anymore, it's now using:
ansi-parser v0.9.1
nom v7.1.3
fixed in commit f3bd7e96 mentioned in changelog via commit
Describe the bug Not a bug, but a compiler warning. Cursive built with ansi will print a warning that it will not build in a future version of Rust.
The slightly more detailed report suggests to upgrade to a newer version of nom.
To Reproduce
Expected behavior I would hope the latest version of Cursive would build on future versions of Rust.
Environment
macOS 13.5