Skip to content

How to use csv as a dynamic formatter? #380

Answered by BurntSushi
evbo asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think a feature like this is a good fit for this library. It's too niche and dependent on serde workflows IMO. For something like this, especially when you're talking about writing proc macros and what not, it makes sense to just bite the bullet and write your own Serde Serializer. This is how csv works internally. It doesn't use any special magic. It's using only public APIs on csv::Writer. You could even copy the serializer out of csv and modify it to fit your needs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants