| Crates.io | compdb |
| lib.rs | compdb |
| version | 0.1.3 |
| created_at | 2025-09-26 12:17:51.717576+00 |
| updated_at | 2025-10-06 10:03:18.3293+00 |
| description | A blazingly fast compilation database manipulation tool - 135x faster than Python compdb |
| homepage | https://github.com/patwie/compdb-rs |
| repository | https://github.com/patwie/compdb-rs |
| max_upload_size | |
| id | 1855811 |
| size | 37,256 |
If Python compdb was a snail, this is a caffeinated cheetah strapped to a tachyon-powered rocket.
Rust is love. Rust is speed. Rust is crab. 🦀
If you don’t like it, write your own compdb in Haskell and wait until 2047 for it to compile.
Once upon a time, someone thought: “You know what we need? A single-threaded Python script to crawl a multi-million-line C++ codebase.” And it worked. Sort of. If by "worked" you mean:
Result: You get your compilation database… eventually. Right after you’ve learned woodworking, become a sourdough expert, and mastered the banjo.
compdb-rs doesn’t ask politely. It shows up in Rust, kicks down the door screaming:
“THREADS. CONTEXT-AWARE RESOLUTION. CACHING. HYPERDRIVE.”
It doesn’t ask the filesystem. It interrogates the filesystem. With intensity. With purpose. With Rayon.
And it’s fast. So fast you'll think the result is an error message. It's not. It's just done.
| Metric | Python compdb |
compdb-rs (The Upgrade) |
Reaction |
|---|---|---|---|
| Time | 12+ seconds | 89 milliseconds | “Did it even run??” |
| Files found | ~2,600 (The ones it felt like finding) | 3,200+ (All of them) | “Python was blindfolded??” |
| Correctness | ❌ Incorrectly resolves headers | ✅ Context-aware resolution | “Oh, so that’s why my IDE was broken.” |
| CPU Cores | 1 (The lonely one) | ALL OF THEM | Even the cursed one labeled Core #0 |
| Vibes | Sad trombone 🎺 | Death metal solo 🎸🔥 | 🤘 |
# From crates.io (because you're a professional)
cargo install compdb
# From source (for those who like to watch the world compile)
git clone https://github.com/patwie/compdb-rs
cd compdb-rs
cargo build --release
# Run it like you stole it
./target/release/compdb -p /path/to/build list > compile_commands.json
That’s it. No obscure flags. No 12-page manual. Just pure, unadulterated speed.
<iostream> for the 57th time.And, because we have taste.
Think you can shave off another 20ms? Please, try. We dare you.
Ways to help:
compdb-rs is not liable for:
Built with: Rust, Rayon, DashMap, caffeine, and a burning hatred of wasted clock cycles.
Motto: "Why wait when you can be done already?"