| 1 |
# is_debug |
| 2 |
The crate by Rust that get build model is debug. |
| 3 |
|
| 4 |
### use function |
| 5 |
```TOML |
| 6 |
[dependencies] |
| 7 |
is_debug = "1" |
| 8 |
``` |
| 9 |
|
| 10 |
```rust |
| 11 |
use is_debug::{is_debug, is_release}; |
| 12 |
|
| 13 |
fn main() { |
| 14 |
println!("{}", is_debug()); |
| 15 |
|
| 16 |
println!("{}", is_release()); |
| 17 |
} |
| 18 |
``` |