Zig provides four build modes, with debug being the default as it produces the shortest compile times.
These may be enabled in
zig run and
zig test with the arguments
-O ReleaseSmall and
Users are recommended to develop their software with runtime safety enabled, despite its small speed disadvantage.