MCPcopy Index your code
hub / github.com/Geal/lovecraft

github.com/Geal/lovecraft @0.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.2.0 ↗ · + Follow
3 symbols 5 edges 2 files 2 documented · 67%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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)

Core symbols most depended-on inside this repo

invoke
called by 1
src/lib.rs
panic_quotes
called by 1
src/lib.rs
main
called by 0
examples/main.rs

Shape

Function 3

Languages

Rust100%

Modules by API surface

src/lib.rs2 symbols
examples/main.rs1 symbols

For agents

$ claude mcp add lovecraft \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact