Skip to content

Stabilize cargo-script #119

@nikomatsakis

Description

@nikomatsakis
Contributor
Metadata
Point of contact @epage
Team(s) cargo, compiler, lang, lang-docs
Goal document 2025h2/cargo-script

Summary

Stabilize support for "cargo script", the ability to have a single file that contains both Rust code and a Cargo.toml.

Tasks and status

  • Discussion and moral support (cargo, compiler Team)
    Ensure Cargo implementation (@epage)

Implement language feature frontmatter

  • Rust-analyzer implementation (@epage)
    rustfmt implementation (@epage)
    Standard reviews (compiler Team)
    Author call for testing blog post (@epage)

Stabilize language feature frontmatter

  • Author Reference PR (@epage)
    Review/revise Reference PR (lang-docs Team)
    Author stabilization report (@epage)
    Author stabilization PR (@epage)
    Stabilization decision (lang Team)

Note: we have updated the body to match the 2025h2 goal. Your original text is preserved below.

Metadata
Owner(s) @epage
Team(s) cargo, lang
Goal document 2024h2/cargo-script
See also rust-lang/cargo#12207

Summary

Stablize support for "cargo script", the ability to have a single file that contains both Rust code and a Cargo.toml.

Tasks and status

See rust-lang/cargo#12207

Activity

added this to the 2024h2 milestone on Jul 22, 2024
locked and limited conversation to collaborators on Jul 25, 2024
nikomatsakis

nikomatsakis commented on Jul 25, 2024

@nikomatsakis
ContributorAuthor

This issue is intended for status updates only.

For general questions or comments, please contact the owner(s) directly.

epage

epage commented on Jul 26, 2024

@epage
Contributor

Key developments: What has happened since the last time. It's perfectly ok to list "nothing" if that's the truth, we know people get busy.

  • None

Blockers: List any Rust teams you are waiting on and what you are waiting for.

  • Time. Expectation is to get to this in a couple months

Help wanted: Are there places where you are looking for contribution or feedback from the broader community?

epage

epage commented on Aug 30, 2024

@epage
Contributor

No change since the last update.

epage

epage commented on Sep 30, 2024

@epage
Contributor

Key developments: What has happened since the last time. It's perfectly ok to list "nothing" if that's the truth, we know people get busy.

Blockers: List any Rust teams you are waiting on and what you are waiting for.

  • Time. Expectation is to get to this in a couple weeks

Help wanted: Are there places where you are looking for contribution or feedback from the broader community?

epage

epage commented on Nov 15, 2024

@epage
Contributor

Key developments: What has happened since the last time. It's perfectly ok to list "nothing" if that's the truth, we know people get busy.

Blockers: List any Rust teams you are waiting on and what you are waiting for.

  • None

Help wanted: Are there places where you are looking for contribution or feedback from the broader community?

  • Writing frontmatter support in rustc. rustfmt folks are asking for it to be represented in the AST.
epage

epage commented on Dec 18, 2024

@epage
Contributor

Key developments: What has happened since the last time. It's perfectly ok to list "nothing" if that's the truth, we know people get busy.

Blockers: List any Rust teams you are waiting on and what you are waiting for.

  • None

Help wanted: Are there places where you are looking for contribution or feedback from the broader community?

  • Writing frontmatter support in rustc. rustfmt folks are asking for it to be represented in the AST.

7 remaining items

nikomatsakis

nikomatsakis commented on Sep 16, 2025

@nikomatsakis
ContributorAuthor

This is a continuing project goal, and the updates below this comment will be for the new period 2025h2

deleted a comment from nikomatsakis on Sep 16, 2025
deleted a comment from nikomatsakis on Sep 16, 2025
deleted a comment from nikomatsakis on Sep 16, 2025
deleted a comment from nikomatsakis on Sep 16, 2025
deleted a comment from nikomatsakis on Sep 16, 2025
deleted a comment from nikomatsakis on Sep 16, 2025
modified the milestones: 2025h1, 2025h2 on Sep 16, 2025
nikomatsakis

nikomatsakis commented on Sep 16, 2025

@nikomatsakis
ContributorAuthor

This is a continuing project goal, and the updates below this comment will be for the new period 2025h2

epage

epage commented on Nov 21, 2025

@epage
Contributor

Key developments

Blockers:

  • rustdoc deciding on and implementing how they want frontmatter handled in doctests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @epage@nikomatsakis@lqd

      Issue actions