This crate provides a container for a value,
allows mutation in debug mode (via
UnsafeCell), but not in
This allows you to tweak data while testing an application, without having that data be mutable when the application is released.
There are also two features available:
force-dynamicwhich allows replacing the value of a
DirtyStaticeven in release mode.
force-staticwhich disallows replacing the value of a
DirtyStaticeven in debug mode.
A container for a value which allows interior mutation
only in debug mode. (Or when enabled via