SolraBizna / liso

Line input with simultaneous output, for Rust.
Apache License 2.0
9 stars 2 forks source link

Serde support through a feature flag. #9

Closed slbsh closed 5 months ago

slbsh commented 5 months ago

Been using this crate in very simple commandline chat server/client, so to send stylized messages I needed to serialize liso::Line.

Turned out to be dead simple, just derive everything through serde.

On another note: prehaps consider using the ansi_term crate for style and colour? It looks to me to be much more standardized, and comes with serde support out of the box. (just a thought, haven't used it myself yet)

SolraBizna commented 5 months ago

And in it goes! Thank you for your contribution. Now published as 1.2.1.

As for switching to ansi_term, I'll have a look at it for my own future reference, but unless there's a clear benefit to switching, I expect I'll leave Liso as it is just out of inertia.