| Crates.io | build-alert |
| lib.rs | build-alert |
| version | 0.1.7 |
| created_at | 2023-03-26 23:54:09.050186+00 |
| updated_at | 2025-03-03 09:12:42.261877+00 |
| description | Display a message in the Cargo build output during compilation. |
| homepage | |
| repository | https://github.com/dtolnay/build-alert |
| max_upload_size | |
| id | 821571 |
| size | 25,529 |
Display a message in the Cargo build output during compilation.
[dependencies]
build-alert = "0.1"
#[cfg(debug_assertions)]
build_alert::yellow! {"
NOTE: use --release
Syn's test suite has some tests that run on every source file
and test case in the rust-lang/rust repo, which can be pretty
slow in debug mode. Consider running cargo test with `--release`
to speed things up.
"}
#[cfg(not(feature = "all-features"))]
build_alert::red! {"
ERROR: use --all-features
Syn's test suite normally only works with all-features enabled.
Run again with `--all-features`, or run with `--features test`
to bypass this check.
"}
