Make it a five-minute yes to contribute¶
Someone hits a small bug in your library and has a one-line fix they would happily send
you. They want to help. Then they read your CONTRIBUTING.md: install Clang 18, CMake
3.28, Ninja, Conan 2.0, configure three presets, wait for a build. Twenty minutes later,
before they have changed a single character, they give up. Willing contributors are rare,
and that one was lost at setup.
Part of a series: Why Great C++ Libraries Fail
This post is part of a series based on my using std::cpp 2026 talk on why technically excellent C++ libraries fail to get adopted. It covers the Contribution stage of the six-stage library journey: do they want to help? New here? Start with the overview.
A satisfied user is your best potential contributor, but only if saying yes is cheap. Two things decide whether it is: how you handle their first message, and how much setup stands between them and a working change.
Communication is a feature of your library¶
How you treat an issue defines your community more than your code does. I have watched technically inferior projects thrive because the maintainer was kind and responsive, and brilliant ones wither because the maintainer treated every question as an imposition. One hostile reply is remembered far longer than a hundred helpful ones.
Start by separating issues from discussions. Issues are for actionable things: bugs, tasks, concrete feature requests. Discussions are for questions, ideas, and show-and-tell. When a newcomer wants to file "how do I convert between these units?" as a bug report, the form itself tells them they are doing something wrong. mp-units disables blank issues and points questions at GitHub Discussions, so asking never feels like cluttering the tracker.
Then kill the "it doesn't work" loop before it starts. Without structure, a vague report turns into five rounds of "what doesn't work?" and "what thing?", after which the reporter gives up and you never learn why. An issue template ends that by requiring the specifics up front: operating system, compiler and version, C++ standard, library version, and a Compiler Explorer link that reproduces the problem. mp-units' bug report form asks for exactly that, so the first response can be an answer instead of an interrogation.
Tone matters as well. Open every reply with a thank-you, even for a duplicate, even when the report turns out to be user error, because that person spent their time on your project. Assume good faith, and never that the user is simply holding it wrong. When someone does hit a real mistake, the interesting question is what let them make it: a confusing name, an unstated precondition, a gap in the docs. Treat that as a bug in the library rather than in the user, and fix the thing that misled them. Every issue, question, and complaint is production feedback you would otherwise have to pay for. Empathy over ego is how a first-time contributor decides whether there will be a second time.
One kind of communication happens before anyone files anything: the issues you open for
them. A bare good first issue label looks welcoming, but on its own it leaves the
newcomer as stuck as before, with no idea which change to make, where, or whether anyone
will actually help. A real one is a small spec, what to change and where, why it matters,
what the contributor will learn, roughly how long it should take, and a named mentor
assigned to see them through the pull request. The mentor is the part that matters most: a
person's name on the issue is a commitment to help. That takes ten minutes to write, and
it removes the decision paralysis that stops a first-timer cold. That isn't just a label.
That is an invitation.
Provide the environment¶
The second barrier is setup. A contributor with a small first change, a one-line fix to behavior, faces a page of toolchain instructions before they can even build to test it. Every step is a chance to give up, and documentation-only setup guides rot the moment a version bumps. The fix is to stop describing the environment and hand it over as a container.
GitHub Codespaces makes the environment a container the contributor never has to build. They
click "Open in Codespaces," and a few minutes later they are editing in a browser with every
compiler and tool already installed, no local setup at all. It works on a Chromebook, an
iPad, or a locked-down corporate laptop that could never install a C++23 toolchain. mp-units
ships this from the README, and the environment is defined once in devcontainer.json,
pointing at a prebuilt image (trainiteu/mp-units:latest) that carries the compiler matrix,
Conan, the analysis tools, and the docs toolchain.
That one definition has several front doors. A contributor who prefers a local editor
opens the identical container in VS Code with the Dev Containers extension, and anyone can
just docker pull the image to get the exact toolchain on the command line. Codespaces, a
local dev container, and a plain Docker image all give the same environment, with nothing
for a contributor to assemble.
The same container pays off well beyond the drive-by contributor. It is one shared
environment for everyone who touches the project. A new team member is productive on day
one instead of losing it to installing toolchains, and because the image carries the
compilers the project targets, anyone can build against a representative set of
configurations locally with
check_all.sh
and catch the obvious breakages before pushing, rather than waiting for the full, larger
CI matrix to find them. Everyone working in it is on the same toolchains, so "works on my
machine" stops being a sentence between contributors, and a dedicated CI job rebuilds the
container on every change so it never quietly drifts.
Where mp-units actually is¶
This is a stage mp-units gets right. Issues and discussions are separated, the bug form demands a reproduction, and a contributor can go from "I would like to help" to a working, CI-compatible environment in minutes without installing anything.
The gap is neither the infrastructure nor the responsiveness. Questions usually get an answer the same day, and small fixes are merged within days. The gap is that there are still very few contributors. A one-person project can be welcoming and fast and still not have grown the handful of regulars who share the review and mentoring load, and now and then a large in-progress change holds the tree long enough that a good pull request has to wait for it to land. The machinery makes contributing easy. Turning that ease into a steady stream of contributors is the same bus-factor problem the Evaluation post admitted, and the next post picks it up.
These tips come from my conference talk on why technically excellent C++ libraries fail to get adopted, and how to fix it. You can watch the recording, which won best talk at using std::cpp 2026, and read the slides. I am giving an updated version of it at CppCon 2026, and the full, extended two-hour keynote at Meeting C++ 2026.