cargo

package
v0.21.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package cargo writes a release's version into a Cargo crate or workspace: the package or workspace version, the requirements that name a member by path, and Cargo.lock (spec 0027 D3).

It edits text and runs no cargo. The release branch is re-cut in memory and the release image carries no Rust toolchain, so every edit replaces exactly the bytes of one version string and leaves the rest of each file as written.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct{}

Writer is the cargo adapter.

func (Writer) Write

func (Writer) Write(fsys fs.FS, manifestPath string, release versionfile.Release) ([]tree.File, error)

Write moves the versions release names into the manifest at manifestPath, its members' manifests and the Cargo.lock beside it, returning the files it changed.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL