Skip to content

docs(runc): fix async README example#479

Merged
mxpv merged 1 commit into
containerd:mainfrom
immanuwell:docs/runc-readme-example
Jul 1, 2026
Merged

docs(runc): fix async README example#479
mxpv merged 1 commit into
containerd:mainfrom
immanuwell:docs/runc-readme-example

Conversation

@immanuwell

@immanuwell immanuwell commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Fixes the async runc README snippet, it was a bit stale.

Repro

  1. Make a tiny crate with runc async feature and tokio.
  2. Copy the old snippet from crates/runc/README.md.
  3. Run cargo check.

It fails because runc::GlobalOpts and build_async() are not in the current API, and create(...) needs .await.

This updates the sample to the current API. Small fix, but it saves a head scratch.
Related: #157

Signed-off-by: immanuwell <pchpr.00@list.ru>
@github-actions github-actions Bot added T-docs Improvements or additions to documentation C-runc runc helper labels Jul 1, 2026
@mxpv mxpv added this pull request to the merge queue Jul 1, 2026
Merged via the queue into containerd:main with commit 6fb72d3 Jul 1, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-runc runc helper T-docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants