← Back to section · Open Source Projects

The RustCrypto Organisational Model: One Organisation, a Fleet of Small Crates

RustCrypto is not one big library but a GitHub organisation maintaining over a hundred small crates, decoupled by trait abstractions between algorithms and callers. This article analyses how this organisational form came about, its advantages and costs, and its moves in the PQC migration.

Published 22 November 2026 · 6 min read · PQ Frontier

The RustCrypto Organisational Model: One Organisation, a Fleet of Small Crates
AI-generated site artwork
Video explainer · Cryptography Libraries: key exchange, maintained in public

Not a Library, but a Way of Organising

Talking about cryptography in the Rust ecosystem inevitably leads to RustCrypto — but its shape is entirely different from the “one project, one big library” form of OpenSSL. RustCrypto is a GitHub organisation with over a hundred repositories, each typically doing exactly one thing: one hash algorithm, one AEAD construction, one signature scheme, or one layer of abstraction. What glues these small pieces into a system is the trait collection the organisation maintains: digest defines a uniform hashing interface, aead defines authenticated encryption, signature defines signatures; algorithm crates implement the traits, and applications program against the traits. This “the organisation is the architecture” approach is the key to understanding it: its product is not any single library but a set of composable cryptographic building blocks.

Why Split It So Fine?

This form is first a product of the Rust language and its package-management culture: Cargo makes fine-grained dependencies cheap enough, and small crates can be released, audited and replaced independently. Second, it is a security-engineering consideration: a cryptographic implementation’s attack surface grows with code size, and a crate that only does SHA-2 is far easier to audit clean than a monolith. Many RustCrypto crates target no_std, running in embedded environments without an operating system, and generally use constant-time implementations to resist timing side channels. The cost falls on users: faced with a hundred-plus crates, newcomers must first learn the trait system to know which pieces to combine, and version combinations need their own care. The organisation mitigates this with documentation sites and recipe-style examples, but the ecosystem remains fundamentally aimed at professional developers.

Division of Labour with Other Rust Routes

Cryptography in Rust is not RustCrypto’s route alone, and understanding it needs some contrast. The name most often mentioned beside it is ring: led by Brian Smith and descended from the BoringSSL approach, it takes the “less but refined” route — offering only a carefully converged set of high-level interfaces, with a mix of assembly-optimised C and Rust underneath, and serving as a default choice for projects such as rustls. Set side by side, the temperamental difference is obvious: ring makes decisions for the user, converging options the way libsodium does; RustCrypto breaks the choices down and hands them to the user, like a hardware store with every part in stock. There are also vendor-maintained routes (such as AWS’s aws-lc-rs, based on bindings to its own cryptography library). For those choosing, the dividing line is clear: if you need ready-to-use encryption around TLS, the ring family is less work; if you need complete algorithms, composability, and the ability to sink down into no_std embedded environments, RustCrypto’s assembly model fits better. This is not a ranking but a divergence between two philosophies of open-source organisation.

The User’s View: Assembling a Cryptographic Engine

Feel this organisational form from a user’s daily perspective: when you need a combination of “hashing + authenticated encryption + signatures”, you do not face one library’s API manual but a parts list — pick a hash crate, an AEAD crate and a signature crate from the organisation; because they share traits, they compose seamlessly, generic code can be written independently of the concrete algorithm, and swapping an algorithm later is just changing a type parameter. This experience is deeply attractive to architects: cryptographic agility is underwritten directly by the language’s type system. The other side is a transfer of responsibility: pick the wrong crate, track the wrong version, combine things wrongly, and the organisation will not catch you. RustCrypto is therefore more like a professional market than a supermarket — complete stock, a reputation for quality, but purchasing decisions are yours to make. This also explains why its user profile concentrates in teams with cryptographic literacy, and its collaborative relationship with higher-level projects such as rustls: the upper layer makes the selection for end users, while RustCrypto supplies the parts that get selected.

How Governance and Quality Are Maintained

RustCrypto has no foundation-style formal governance; it relies on a core maintainer group (Tony Arcieri among the most active) exercising unified control over the organisation’s repositories: shared continuous-integration templates, a shared release process, review thresholds for new algorithms, and the practice of commissioning third-party audits for core crates — several popular crates in the organisation have been audited by professional security firms with public reports. Under the organisation there are also sub-series such as RustCrypto/formats, dedicated to encodings like DER, PEM, PKCS#8 and X.509, governing “algorithms” and “formats” — two problem classes that easily entangle — separately. This governance by reputation and process rather than by legal entity is a mature specimen of the GitHub-era open-source organisation, and its stability has been proven by nearly a decade of continuous output.

A Risk List for This Organisational Form

In fairness, the organisational form carries its own risks. First, a fragmented version of the single-maintainer risk: the organisation as a whole is stable, but a specific crate may rest on one maintainer, and if it is abandoned your dependency chain gains a dead zone. Second, version-coordination cost: over a hundred crates release independently, and a major trait upgrade triggers a chain migration across the whole ecosystem, for which users must budget engineering time for the periodic “everyone moves house” exercise. Third, discovery cost: the organisation has no single flagship product facade, and new users cannot easily tell at a glance which crates are “official mainstays” and which are experimental grounds. These risks are not defects but the price tag of the form; mature users check maintenance status crate by crate before adopting, and place critical dependencies on their own supplier lists. Spelling the risks out plainly is itself part of the evidence that this ecosystem is trustworthy.

Post-Quantum: The First-Mover Advantage of Modularity

The PQC migration happens to be the stage for this organisational form. A new algorithm does not need to wait for some big library’s next major release: the organisation simply creates a new, independent crate. ML-KEM and ML-DSA had corresponding organisation implementations around the finalisation of FIPS 203/204, with hashing, signatures and key encapsulation each as separate crates; applications can pull in only the piece they need and connect it to existing code through the traits. For teams planning PQC pilots within a Rust stack, this means migration can start grey-scale, by swapping one crate, rather than as library-level surgery. Of course, before adopting, one should still verify the specific crate’s audit and maintenance status (per each repository’s documentation) — modularity amplifies freedom of choice and hands the due-diligence responsibility back to the user, which is this ecosystem’s consistent character.

Tags: RustCryptoRustOpen Source OrganisationsCrypto Libraries