Razaekel / noise-rs

Procedural noise generation library for Rust.
Apache License 2.0
856 stars 120 forks source link

Fix example dependencies #282

Closed bsurmanski closed 2 years ago

bsurmanski commented 2 years ago

Each example uses NoiseImage::write_to_file, which uses cfg(feature="images"). (note, "images", not "image").

Previously, running an example without features would give an error like: target 'perlin' in package 'noise' requires the features: 'image', and running again with feature 'image' would give: no method named 'write_to_file' found for struct 'NoiseMap' in the current scope. Running again with feature 'images' works as expected.