Skip to content

Setting out to Cargo.toml with workspace.package.version result in format changing. #38

Description

@kareemmahlees

Problem

I have a Rust application and I would like to pump the version in my Cargo.toml each time I make a new release.
My version field resides under workspace.package.version, every time I try to pump the version bumper seems to reformat the whole file into a different format:

  • Adding indentations.
  • Splitting dependencies into workspace.dependencies.serde and so on.

Desired solution

Nothing should change except for the version.

Workaround

I had to install another crate ( cargo-edit ) with an after:bump hook to update the version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions