3 stable releases

1.0.2 Dec 13, 2024
1.0.1 Nov 12, 2021
1.0.0 Nov 11, 2021

#132 in Build Utils

Download history 31695/week @ 2024-09-27 32343/week @ 2024-10-04 32514/week @ 2024-10-11 34074/week @ 2024-10-18 34060/week @ 2024-10-25 34617/week @ 2024-11-01 32577/week @ 2024-11-08 34958/week @ 2024-11-15 32171/week @ 2024-11-22 36608/week @ 2024-11-29 39345/week @ 2024-12-06 40631/week @ 2024-12-13 25997/week @ 2024-12-20 36162/week @ 2024-12-27 38879/week @ 2025-01-03 34565/week @ 2025-01-10

140,751 downloads per month
Used in 121 crates (via shadow-rs)

MIT AND Apache-2.0

3KB

is_debug

The crate by Rust that get build model is debug.

use function

[dependencies]
is_debug = "1"
use is_debug::{is_debug, is_release};

fn main() {
	println!("{}", is_debug());

	println!("{}", is_release());
}

No runtime deps