Documentation
¶
Index ¶
- Constants
- type BinConfig
- type CargoTOML
- type Dependency
- type LibConfig
- type PackageInfo
- type Profile
- type RustProvider
- func (p *RustProvider) Build(ctx *generate.GenerateContext, build *generate.CommandStepBuilder)
- func (p *RustProvider) Detect(ctx *generate.GenerateContext) (bool, error)
- func (p *RustProvider) GetRustEnvVars(ctx *generate.GenerateContext) map[string]string
- func (p *RustProvider) GetStartCommand(ctx *generate.GenerateContext) string
- func (p *RustProvider) Initialize(ctx *generate.GenerateContext) error
- func (p *RustProvider) Install(ctx *generate.GenerateContext, install *generate.CommandStepBuilder)
- func (p *RustProvider) InstallMisePackages(ctx *generate.GenerateContext, miseStep *generate.MiseStepBuilder)
- func (p *RustProvider) Name() string
- func (p *RustProvider) Plan(ctx *generate.GenerateContext) error
- func (p *RustProvider) StartCommandHelp() string
- type RustToolchain
- type ToolchainSpec
- type WorkspaceConfig
Constants ¶
View Source
const ( DEFAULT_RUST_VERSION = "1.89" CARGO_REGISTRY_CACHE = "/root/.cargo/registry" CARGO_GIT_CACHE = "/root/.cargo/git" CARGO_TARGET_CACHE = "target" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinConfig ¶
type BinConfig struct {
Name string `toml:"name,omitempty"`
Path string `toml:"path,omitempty"`
Test bool `toml:"test,omitempty"`
Bench bool `toml:"bench,omitempty"`
Doc bool `toml:"doc,omitempty"`
Plugin bool `toml:"plugin,omitempty"`
Harness bool `toml:"harness,omitempty"`
Required bool `toml:"required,omitempty"`
}
type CargoTOML ¶
type CargoTOML struct {
Package PackageInfo `toml:"package"`
Dependencies map[string]any `toml:"dependencies,omitempty"`
DevDependencies map[string]any `toml:"dev-dependencies,omitempty"`
BuildDependencies map[string]any `toml:"build-dependencies,omitempty"`
Lib LibConfig `toml:"lib,omitempty"`
Bin []BinConfig `toml:"bin,omitempty"`
Workspace WorkspaceConfig `toml:"workspace,omitempty"`
}
type Dependency ¶
type Dependency struct {
Version string `toml:"version,omitempty"`
Path string `toml:"path,omitempty"`
Git string `toml:"git,omitempty"`
Branch string `toml:"branch,omitempty"`
Tag string `toml:"tag,omitempty"`
Rev string `toml:"rev,omitempty"`
Features []string `toml:"features,omitempty"`
Optional bool `toml:"optional,omitempty"`
DefaultFeatures bool `toml:"default-features,omitempty"`
Package string `toml:"package,omitempty"`
}
type LibConfig ¶
type LibConfig struct {
Name string `toml:"name,omitempty"`
Path string `toml:"path,omitempty"`
CrateType []string `toml:"crate-type,omitempty"`
ProcMacro bool `toml:"proc-macro,omitempty"`
Harness bool `toml:"harness,omitempty"`
Test bool `toml:"test,omitempty"`
DocTest bool `toml:"doctest,omitempty"`
Bench bool `toml:"bench,omitempty"`
Doc bool `toml:"doc,omitempty"`
Plugin bool `toml:"plugin,omitempty"`
}
type PackageInfo ¶
type PackageInfo struct {
Name string `toml:"name"`
Version string `toml:"version"`
RustVersion string `toml:"rust-version,omitempty"`
Authors []string `toml:"authors,omitempty"`
Edition string `toml:"edition,omitempty"`
Description string `toml:"description,omitempty"`
License string `toml:"license,omitempty"`
Repository string `toml:"repository,omitempty"`
Homepage string `toml:"homepage,omitempty"`
Documentation string `toml:"documentation,omitempty"`
Keywords []string `toml:"keywords,omitempty"`
Categories []string `toml:"categories,omitempty"`
Readme string `toml:"readme,omitempty"`
Exclude []string `toml:"exclude,omitempty"`
Include []string `toml:"include,omitempty"`
Publish bool `toml:"publish,omitempty"`
DefaultRun string `toml:"default-run,omitempty"`
}
type Profile ¶
type Profile struct {
Opt string `toml:"opt-level,omitempty"`
Debug bool `toml:"debug,omitempty"`
Rpath bool `toml:"rpath,omitempty"`
LtoFlags []string `toml:"lto,omitempty"`
Debug_assertions bool `toml:"debug-assertions,omitempty"`
Codegen map[string]string `toml:"codegen-units,omitempty"`
Panic string `toml:"panic,omitempty"`
Incremental bool `toml:"incremental,omitempty"`
Overflow_checks bool `toml:"overflow-checks,omitempty"`
}
type RustProvider ¶
type RustProvider struct{}
func (*RustProvider) Build ¶
func (p *RustProvider) Build(ctx *generate.GenerateContext, build *generate.CommandStepBuilder)
func (*RustProvider) Detect ¶
func (p *RustProvider) Detect(ctx *generate.GenerateContext) (bool, error)
func (*RustProvider) GetRustEnvVars ¶
func (p *RustProvider) GetRustEnvVars(ctx *generate.GenerateContext) map[string]string
func (*RustProvider) GetStartCommand ¶
func (p *RustProvider) GetStartCommand(ctx *generate.GenerateContext) string
func (*RustProvider) Initialize ¶
func (p *RustProvider) Initialize(ctx *generate.GenerateContext) error
func (*RustProvider) Install ¶
func (p *RustProvider) Install(ctx *generate.GenerateContext, install *generate.CommandStepBuilder)
func (*RustProvider) InstallMisePackages ¶
func (p *RustProvider) InstallMisePackages(ctx *generate.GenerateContext, miseStep *generate.MiseStepBuilder)
func (*RustProvider) Name ¶
func (p *RustProvider) Name() string
func (*RustProvider) Plan ¶
func (p *RustProvider) Plan(ctx *generate.GenerateContext) error
func (*RustProvider) StartCommandHelp ¶
func (p *RustProvider) StartCommandHelp() string
type RustToolchain ¶
type RustToolchain struct {
// The toolchain specification
Toolchain ToolchainSpec `toml:"toolchain"`
}
type ToolchainSpec ¶
Click to show internal directories.
Click to hide internal directories.