Skip to content
You've met with a terrible fate, haven't you?
Branch: master
Clone or download
Latest commit 464b3e1 Apr 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples add readme and examples Apr 12, 2019
src configurable quotes Apr 12, 2019
.gitignore initial import Apr 12, 2019
Cargo.toml add the repository Apr 12, 2019
LICENSE add license Apr 12, 2019
README.md

README.md

You've met with a terrible fate, haven't you?

Long ago, every Rust program came with a set of Lovecraft quotes that would be displayed on panic. Unfortunately, for a lot of important reasons like making "hello world" programs smaller, they were removed.

Thankfully, this crate brings disorder and dread back into your programs.

With the following code:

extern crate lovecraft;

fn main() {
    lovecraft::invoke();

    panic!("Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn");
}

This will print:

$ ./main
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn

It was from the artists and poets that the pertinent answers came, and I
know that panic would have broken loose had they been able to compare notes.
As it was, lacking their original letters, I half suspected the compiler of
having asked leading questions, or of having edited the correspondence in
corroboration of what he had latently resolved to see.

You can also choose your own quotes with the function: lovecraft::panic_quotes(quotes: &'static [&'static str], default: &'static str)

You can’t perform that action at this time.