Crates.io | frack |
lib.rs | frack |
version | 2.0.0 |
source | src |
created_at | 2024-06-20 07:35:17.28874 |
updated_at | 2024-06-21 20:15:26.62686 |
description | A fake Rust error generator. |
homepage | |
repository | |
max_upload_size | |
id | 1277660 |
size | 35,258 |
A fake Rust error generator - both CLI and as a lib! Can be used for joke errors or, if you desire, real ones.
The goal is to be as accurate to real rustc
errors/warnings as possible. If
I'm missing the mark, please make an issue or a PR.
See frack help
.
Command for the image:
frack
error AMOGUS
"this code is sus" \
" let Foo { x } = z;" \
8-16 \
fix "`y` lives matter" \
" let Foo { x, y } = z;" \
15-17 \
help "don't discriminate next time" \
note "error generated by Kyllingene/frack"
See files in examples/
: they're small and easy-to-read. To try them out, do
cargo run --example NAME
, e.g. cargo run --example demo
.