Skip to content

Commit

Permalink
Wrap README at 100 lines
Browse files Browse the repository at this point in the history
  • Loading branch information
johnthagen committed Sep 11, 2024
1 parent 5d0b53b commit dc323be
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,12 @@ $ RUSTFLAGS="-Zlocation-detail=none" cargo +nightly build --release

![Minimum Rust: Nightly](https://img.shields.io/badge/Minimum%20Rust%20Version-nightly-orange.svg)

With the [`-Zfmt-debug`](https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/fmt-debug.html) flag you can turn `#[derive(Debug)]`
and [`{:?}`](https://doc.rust-lang.org/stable/std/fmt/trait.Debug.html) formatting into no-ops.
This will ruin output of `dbg!()`, `assert!()`, `unwrap()`, etc., and may break code that unwisely relies on
the debug formatting, but it will remove derived `fmt` functions and their strings.
With the
[`-Zfmt-debug`](https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/fmt-debug.html) flag
you can turn `#[derive(Debug)]`and
[`{:?}`](https://doc.rust-lang.org/stable/std/fmt/trait.Debug.html) formatting into no-ops. This
will ruin output of `dbg!()`, `assert!()`, `unwrap()`, etc., and may break code that unwisely
relies on the debug formatting, but it will remove derived `fmt` functions and their strings.

```bash
$ RUSTFLAGS="-Zfmt-debug=none" cargo +nightly build --release
Expand Down

0 comments on commit dc323be

Please sign in to comment.