{"id":50578350,"url":"https://github.com/powersemmi/ruststream","last_synced_at":"2026-06-07T02:01:06.305Z","repository":{"id":361641027,"uuid":"1255087073","full_name":"powersemmi/ruststream","owner":"powersemmi","description":"An async messaging framework for Rust","archived":false,"fork":false,"pushed_at":"2026-06-05T05:34:34.000Z","size":965,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-06T01:14:12.567Z","etag":null,"topics":["asyncapi","distributed-systems","rust","stream-processing"],"latest_commit_sha":null,"homepage":"https://powersemmi.github.io/ruststream/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/powersemmi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-31T11:44:05.000Z","updated_at":"2026-06-05T05:34:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/powersemmi/ruststream","commit_stats":null,"previous_names":["powersemmi/ruststream"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/powersemmi/ruststream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersemmi%2Fruststream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersemmi%2Fruststream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersemmi%2Fruststream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersemmi%2Fruststream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/powersemmi","download_url":"https://codeload.github.com/powersemmi/ruststream/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersemmi%2Fruststream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34006037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncapi","distributed-systems","rust","stream-processing"],"created_at":"2026-06-05T00:02:21.757Z","updated_at":"2026-06-07T02:01:06.042Z","avatar_url":"https://github.com/powersemmi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eRustStream\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ci\u003eAn async messaging framework for Rust: broker-agnostic traits, a router runtime, codecs, AsyncAPI generation, Prometheus metrics, and a conformance harness for broker authors.\u003c/i\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/powersemmi/ruststream/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/powersemmi/ruststream/actions/workflows/ci.yml/badge.svg\" alt=\"CI\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://crates.io/crates/ruststream\"\u003e\u003cimg src=\"https://img.shields.io/crates/v/ruststream.svg\" alt=\"crates.io\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://docs.rs/ruststream\"\u003e\u003cimg src=\"https://img.shields.io/docsrs/ruststream\" alt=\"docs.rs\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/MSRV-1.85-blue.svg\" alt=\"MSRV 1.85\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-Apache--2.0-blue.svg\" alt=\"License\"\u003e\n  \u003ca href=\"https://context7.com/powersemmi/ruststream\"\u003e\u003cimg src=\"https://img.shields.io/badge/Context7-Ask_AI-ff5722\" alt=\"Ask AI\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003e\u003ca href=\"https://powersemmi.github.io/ruststream/\"\u003eDocumentation\u003c/a\u003e\u003c/b\u003e\n\u003c/p\u003e\n\n---\n\nRustStream connects your service to a message broker through a small set of generic traits, then\ngives you a router, middleware, codecs, and tooling on top. The core depends on no broker, so each\nbroker is an independent crate held to one contract; broker-specific configuration never leaks into\nthe framework.\n\n## Features\n\n- **Broker-agnostic core.** Just traits and types, zero broker dependencies. Brokers are separate\n  crates, and the contract is checked by a conformance harness.\n- **Fully async on tokio.** No blocking APIs in the public surface.\n- **Subscribers are `Stream`s, not callbacks.** Back-pressure comes for free.\n- **Ack consumes `self`.** Double-ack is a compile error.\n- **Pluggable codecs:** JSON, MessagePack, and CBOR behind cargo features.\n- **Zero-boilerplate binaries.** `#[ruststream::app]` generates `main`; the `ruststream` CLI\n  scaffolds projects, runs them, and generates the AsyncAPI document.\n- **AsyncAPI 3.0 and Prometheus metrics,** served from your own HTTP stack.\n- **Colored console logging** behind the `logging` feature; the generated CLI installs it on `run`,\n  with verbosity driven by `RUST_LOG`.\n- **Capability traits** for optional features (batch subscribe, transactions, request-reply,\n  partitioning); a broker implements only what it supports.\n\n## Install\n\n```toml\n[dependencies]\nruststream = { version = \"0.2\", features = [\"macros\", \"memory\", \"json\"] }\nserde = { version = \"1\", features = [\"derive\"] }\n```\n\nThe CLI ships with the crate behind the `cli` feature:\n\n```bash\ncargo install ruststream --features cli\n```\n\n## Write a service\n\n```rust\nuse ruststream::codec::JsonCodec;\nuse ruststream::memory::MemoryBroker;\nuse ruststream::runtime::{AppInfo, HandlerResult, RustStream};\nuse ruststream::subscriber;\nuse serde::Deserialize;\n\n#[derive(Debug, Deserialize)]\nstruct Order {\n    id: u64,\n}\n\n#[subscriber(\"orders\")]\nasync fn handle(order: \u0026Order) -\u003e HandlerResult {\n    println!(\"got order {}\", order.id);\n    HandlerResult::Ack\n}\n\n#[ruststream::app]\nfn app() -\u003e RustStream {\n    RustStream::new(AppInfo::new(\"orders\", \"0.1.0\"))\n        .with_broker(MemoryBroker::new(), |b| b.include(handle, JsonCodec))\n}\n```\n\n`#[ruststream::app]` generates `main`, so there is no runtime boilerplate.\n\n## Run it\n\n```bash\nruststream run                 # start the service (or: cargo run -- run)\nruststream asyncapi gen        # print the AsyncAPI document\nruststream new my-service      # scaffold a new project\n```\n\n## Test it\n\nUnit-test handlers against the in-memory broker, with no external service. It does core routing\nonly, so you assert on handler behaviour, middleware, and decoding exactly as in production. See the\n[testing guide](https://powersemmi.github.io/ruststream/guides/testing/).\n\n## Documentation\n\n- Guide and tutorials: \u003chttps://powersemmi.github.io/ruststream/\u003e\n- API reference: \u003chttps://docs.rs/ruststream\u003e\n- Writing a broker: \u003chttps://powersemmi.github.io/ruststream/broker-authors/\u003e\n\n## Ecosystem\n\n- [`ruststream-nats`](https://github.com/powersemmi/ruststream-nats): the NATS broker (Core NATS and\n  JetStream).\n- [`ruststream-py`](https://github.com/powersemmi/ruststream-py): Python bindings.\n\nConcrete brokers live in their own crates and pull `ruststream` from crates.io.\n\n## Contributing\n\n```bash\njust check    # fmt, clippy, and feature checks\njust test     # the test suite\n```\n\n## License\n\nLicensed under the [Apache-2.0](./LICENSE) license.\n\n\u003csub\u003eInspired by [FastStream](https://github.com/airtai/faststream).\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowersemmi%2Fruststream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowersemmi%2Fruststream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowersemmi%2Fruststream/lists"}