CosmicHorrorDev / vdf-rs

VDF parsing and (de)serialization for Rust
Apache License 2.0
31 stars 3 forks source link

Support for VDF dumping #33

Closed Gobot1234 closed 2 years ago

Gobot1234 commented 2 years ago

Would it be possible to add support for VDF dumping by any chance. It would be very useful for a project I'm working on that already uses this crate.

CosmicHorrorDev commented 2 years ago

Hiya! Sorry I may just be unfamiliar. What do you mean by "VDF dumping"?

Gobot1234 commented 2 years ago

Like turning a Vdf object into text again

CosmicHorrorDev commented 2 years ago

Alright, that's what I assumed, but I wasn't sure

I'm assuming you're talking about keyvalues-parser in which case converting a Vdf back to text can already be done with the Display trait (this is shown with println!() at the end of this example, but you can use format!() to get a String instead)

I should probably add .render() and .render_into() methods to make this more obvious :thinking:


Anyways, thanks for taking the time to open an issue! Feel free to open more if you run into any more problems