dirty_static 0.1.2

A container for an immutable value that allows sneaky reloading in debug mode (via UnsafeCell) while keeping the data safe and constant in release mode. This allows you to tweak data while testing an application, without having that data be mutable when the application is released. Intended for use with game assets, but suitable for any interactive application.
Documentation
#!/bin/bash

set -e

echo -e "\033[36;1mRunning debug tests:\033[0m"
cargo test

echo -e "\033[36;1mRunning debug/force-static tests:\033[0m"
cargo test --features force-static

echo -e "\033[36;1mRunning debug/force-dynamic tests:\033[0m"
cargo test --features force-dynamic

echo -e "\033[36;1mRunning release tests:\033[0m"
cargo test --release

echo -e "\033[36;1mRunning release/force-static tests:\033[0m"
cargo test --release --features force-static

echo -e "\033[36;1mRunning release/force-dynamic tests:\033[0m"
cargo test --release --features force-dynamic

echo -e "\033[36;1mRunning rustfmt:\033[0m"
cargo fmt -- --check

echo -e "\033[36;1mRunning clippy:\033[0m"
cargo clippy -- -D clippy::all
cargo clippy --release -- -D clippy::all