Open-source project
zesterer/flume avatar
zesterer/flume

flume: three of four features on by default and a spinlock always linked

A safe and fast multi-producer, multi-consumer channel.

3,092 stars111 forksRustApache-2.0

At a glance

What is it?
Flume is a Rust channel crate that positions itself as a drop-in replacement for the standard library one, with no unsafe code and a promise of always being faster than what it replaces. Its manifest is where the interesting detail lives: most optional features are switched on by default, one of them buys fairness with randomness, and the spinlock crate is a required dependency behind a feature that declares no dependencies at all.
Who is it for?
Flume suits a project that wants a channel it can drop in place of the standard library one, keep several senders and receivers cloned across threads, and add a select-like wait across several channels without taking on a heavier queue implementation.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 10 days ago.
What is it written in?
Mainly Rust, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • zesterer/flume3,092 ★ · +16
Star history
Repository2026-09-242026-11-23
zesterer/flume3.1k3.1k

16 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The project says feature development has stopped and the last push is August

The Status section is the part of this readme worth reading before anything else, and it is a statement of intent rather than a changelog. The crate is in what the page calls casual maintenance mode, linked to a third-party site that defines the term, and it explains the definition itself: the crate will continue to receive critical security and bug fixes, but heavy feature development has stopped. It then invites pull requests for new features with the caveat that the author will try to find time to review them. The closing paragraph says the author considers the crate largely feature-complete, bar small details. Set against that, the last push on the default branch is dated 2026-08-07 and the repository has no release history of its own, since there are no tags or releases published on the forge and the versions live on a package registry instead. Nothing about the repository is archived; the slowdown is a stated choice.

Three of the four optional features are on by default

The Cargo Features section lists four switches, and the manifest then reveals that three of them are enabled unless you opt out. The four are a spinlock option, an option that adds a selector type for waiting on several channels at once, an option that adds an asynchronous interface, and an option that changes how the selector picks between ready events. The default set in the manifest is the last three of those, so the asynchronous interface and the selector arrive in a default build even though the readme presents all four as things you add. The manifest also shows the dependency structure, and it is not one-to-one with the feature list. The selector switch itself declares no dependencies. The fairness switch declares the selector and a random number generator. The asynchronous switch declares two futures traits. And the spinlock switch declares nothing at all, which is where the next section starts. The readme shows how to turn features on by changing the dependency line, and the example it gives switches the defaults off and then names two of the three:

toml
flume = { version = "x.y", default-features = false, features = ["async", "select"] }

So four switches presented as additions are, in practice, three additions and one omission, and the omission is the one that changes what the selector does.

eventual-fairness injects randomness into a default build

One of the three default-on features exists to work around a fairness problem, and its solution is to use randomness. The readme describes it as using randomness in the implementation of the selector to avoid biasing or saturating certain events over others. That is a real and well-known problem with select-style loops, where one always-ready branch can starve the others, and solving it with a random tie-break trades determinism for fairness. What makes it worth noting is that this trade is the default. A default build therefore contains a random number generator, and the manifest requests it with both the standard and JavaScript feature flags enabled, which is what lets the same code compile for WebAssembly. The readme's own example of enabling features turns the defaults off and then names two features explicitly, which quietly drops the fairness option, so following that example gives you a different selector than the one you get by doing nothing.

The spinlock crate is a required dependency behind a feature with no dependencies

The feature table and the dependency list do not agree, and the disagreement is the kind that shows up in a dependency audit. The spinlock switch is declared as an empty list, which in a manifest means the feature pulls in nothing, and the readme describes it as using spinlocks instead of operating system synchronisation primitives internally for some kind of data access. Yet the required dependency section contains a spinlock crate unconditionally, renamed in the manifest so it appears under a different package name, with its mutex feature enabled and no optional marker. So the crate is compiled and linked whether or not the switch that is supposed to govern it is enabled. The only way the manifest makes sense is if the source gates the usage behind a conditional compilation flag that the package manager cannot see, which is a normal arrangement in the Rust ecosystem. It is also the arrangement that makes a dependency-tree review report a lock library that the default build may not use.

The benchmark heading links to a comic about rigged benchmarks

The Benchmarks section opens with a heading whose link goes to a webcomic about how benchmarks are rigged, and the first sentence under it says not to take from this page that the crate is quick. The page then says it has its own extensive benchmarks, in a directory in the repository, and that the graph below is from the competing channel library's own benchmark suite. So the evidence shown is a third party's, and the surrounding text is a disclaimer rather than a claim. The environment line underneath is where it becomes concrete: tests on a desktop eight-core processor, a Linux kernel version from 2021, and a scheduler chosen for interactive responsiveness rather than for server workloads. For a primitive whose whole purpose is contention between threads, a graph produced on one machine with one scheduler is weak evidence, and the page is honest that it is. The section then ends with an empty placeholder where the graph should be.

The published documentation is built with every feature switched on

The manifest carries a documentation configuration block that builds the API reference with all features enabled, and passes a conditional-compilation flag so that documentation-only items appear. The consequence is that what you read on the documentation site is the union of every optional surface: the synchronous and asynchronous APIs, the selector, and the spinlock paths, all presented as if they were one API. A default build has three of those four features on, so the difference from what you get by default is small, but the difference is real and the documentation will not tell you which parts require a feature you have not enabled. The readme's own link structure makes the same split: one link to the documentation site and another to the generated API reference. Neither says which feature set produced the page you are looking at, beyond the manifest setting that did.

The manifest says multi-producer and drops the consumer half

Three descriptions of the same crate appear in the repository and they do not match. The repository's own metadata calls it a safe and fast multi-producer, multi-consumer channel. The readme's opening line calls it a blazingly fast multi-producer, multi-consumer channel, with an adverb the manifest does not use. The manifest's package description calls it a blazingly fast multi-producer channel, and multi-consumer is gone. So the artefact a user sees on the package registry, which is the manifest text, promises less than the two other descriptions do, and the adverb is the only part of the claim that appears in all three. The keyword list in the same manifest is broader than the description, naming both first-in first-out ordering and multi-producer multi-consumer in abbreviated form alongside thread and channel, so the lost half survives in the keywords if not in the sentence.

The manifest author is not the repository owner

Two names appear in the repository and neither the readme nor the tree connects them. The repository is owned by one account, and the package manifest lists a different person as the author, with an email address, while the Status section is written in the first person by whoever maintains it. Nothing on the page states that the manifest author and the repository owner are the same person, and nothing says they are different. What is visible is the licence detail: the crate is dual licensed at your option under either the Apache 2.0 licence or the MIT licence, with a file for each of the two at the repository root and the choice written into the manifest as a disjunction. The manifest also declares the documentation site to be built with every optional feature enabled rather than with the default set, and the package registry page it names as its homepage is the only destination the manifest points at. The repository's own licence metadata names only one of the two, so a tool reading the metadata rather than the manifest sees a single-licence project.

Editorial conclusion

Flume suits a project that wants a channel it can drop in place of the standard library one, keep several senders and receivers cloned across threads, and add a select-like wait across several channels without taking on a heavier queue implementation. It is a poor fit if you need new features from it, because the author has said heavy feature development has stopped, and a poor fit if you want a lean dependency graph, since the default build carries a random number generator for a fairness workaround and a spinlock crate regardless of whether you asked for either. Before you adopt it, read the manifest rather than the feature list: the default set is not the set you might expect from four optional-looking switches, and the published documentation is built with all of them on rather than with the defaults.

Frequently asked questions

What is the flume Rust crate?

It is a multi-producer, multi-consumer channel crate for Rust, described as a drop-in replacement for the standard library channel. It offers unbounded, bounded and rendezvous queues, sender and receiver types that all implement the send, sync and clone traits, send timeouts and deadlines, an optional asynchronous interface, and a selector-style interface for waiting on several channels at once. The readme states there is no unsafe code anywhere in the codebase.

Is flume still being worked on?

The readme states that the crate is in casual maintenance mode under a published definition of that term, meaning critical security and bug fixes continue while heavy feature development has stopped, and that the author considers it largely feature-complete. New feature pull requests are invited with the caveat that review time is limited. The last push on the default branch is dated 2026-08-07 and the repository is not archived.

What are flume's Cargo features and which are enabled by default?

Four: a spinlock option, an option adding a selector type, an option adding an asynchronous interface, and an option using randomness in the selector to avoid starving some events. The manifest enables the last three by default, so a default build includes the fairness behaviour and a random number generator. The readme's own example of enabling features turns the defaults off and then names two of them explicitly.

How does the flume benchmark compare to other Rust channels?

The readme's benchmark heading links to a webcomic about rigged benchmarks and the first sentence says not to take from the page that the crate is quick. The graph shown is from a competing channel library's own benchmark suite, run on a desktop eight-core processor with a Linux kernel from 2021 and a scheduler intended for interactive use. The readme separately says the crate has its own benchmark suite in the repository.

What licence is flume under, and which Rust version does it need?

Dual licensed at your option under either the Apache 2.0 licence or the MIT licence, with a file for each at the repository root, although the repository's licence metadata names only the Apache one. The manifest declares the 2018 edition and a minimum compiler version of 1.78.0.

What does the word flume mean, and how do I use a flume wrench or water monitor?

None of those questions are answered on this page. It is a Rust package readme describing one channel crate, its features, its maintenance status and its licence.

Official sources

  1. Issues
  2. License: Apache-2.0
  3. Project website
  4. README
  5. zesterer/flume on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/zesterer-flume.svg)](https://hysenlabs.com/projects/zesterer-flume)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/zesterer-flume.svg)](https://hysenlabs.com/projects/zesterer-flume)

Was this useful?