Skip to content

Commit 54b1608

Browse files
committed
Document the debug_assertions cfg option
1 parent c3d60ab commit 54b1608

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/doc/reference.md

+4
Original file line numberDiff line numberDiff line change
@@ -2003,6 +2003,10 @@ arbitrarily complex configurations through nesting.
20032003

20042004
The following configurations must be defined by the implementation:
20052005

2006+
* `debug_assertions`. Enabled by default when compiling without optimizations.
2007+
This can be used to enable extra debugging code in development but not in
2008+
production. For example, it controls the behavior of the standard library's
2009+
`debug_assert!` macro.
20062010
* `target_arch = "..."`. Target CPU architecture, such as `"x86"`, `"x86_64"`
20072011
`"mips"`, `"powerpc"`, `"arm"`, or `"aarch64"`.
20082012
* `target_endian = "..."`. Endianness of the target CPU, either `"little"` or

0 commit comments

Comments
 (0)