Razaekel / noise-rs

Procedural noise generation library for Rust.
Apache License 2.0
842 stars 118 forks source link

add serde feature #353

Open PTFOPlayer opened 3 months ago

PTFOPlayer commented 3 months ago

it will allow saving noise maps in JSON or TOML

JupiterSky11 commented 2 months ago

While this has potential uses I feel like it's an extraneous feature and can easily be added as-needed in projects that require it.

PTFOPlayer commented 2 months ago

The ability to serialize data is important when exchanging data between different parts of the system, for example exchanging between parts written in Rust and JS, or if noise is used many times you can save it to a file and not recalculate it every time

JupiterSky11 commented 2 months ago

This could easily be done by the project that requires this as opposed to being integrated directly into the crate.