rust

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubRelease

type GitHubRelease struct {
	TagName    string `json:"tag_name"`
	Name       string `json:"name"`
	Prerelease bool   `json:"prerelease"`
	Draft      bool   `json:"draft"`
}

type Rust

type Rust struct{}

func (*Rust) GetDefaultVersion

func (r *Rust) GetDefaultVersion(ctx context.Context) *core.InstalledVersion

func (*Rust) Install

func (r *Rust) Install(ctx context.Context, version *core.RemoteVersion) error

func (*Rust) ListInstalledVersions

func (r *Rust) ListInstalledVersions(ctx context.Context) ([]*core.InstalledVersion, error)

func (*Rust) ListRemoteVersions

func (r *Rust) ListRemoteVersions(ctx context.Context) ([]*core.RemoteVersion, error)

ListRemoteVersions 获取远程Rust版本列表

func (*Rust) Name

func (r *Rust) Name() string

func (*Rust) SetDefaultVersion

func (r *Rust) SetDefaultVersion(ctx context.Context, version string) error

func (*Rust) Uninstall

func (r *Rust) Uninstall(ctx context.Context, version string) error

Jump to

Keyboard shortcuts

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