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.
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.