Skip to content

Add minimal example: hello-single-latest #93

@lxsaah

Description

@lxsaah

Difficulty: easy · Estimate: 2–3 hours

The README explains three buffer primitives (SPMC Ring, SingleLatest, Mailbox) but the quick-start only demonstrates SPMC Ring. Newcomers learn fastest from minimal examples per concept. Add a runnable examples/hello-single-latest that's the simplest possible "current value matters" demo.

Where to look

What to do

  • Create examples/hello-single-latest/ with Cargo.toml, src/main.rs, README.md.
  • ~30–50 lines of Rust: a single f32 "feature flag" record published every second, a tap that prints whenever the value changes.
  • Add to root Cargo.toml workspace members.

Done when

  • cargo run -p hello-single-latest works and prints values
  • The example's README explains what SingleLatest semantics buy you in one paragraph
  • Linked from main README's buffer table

We'd love help with this — comment if you'd like to take it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions