Documentation ¶
Index ¶
- func GenerateRustCargofile(schema *scalefile.Schema, parsedSignatureDependency *ParsedDependency, ...) ([]byte, error)
- func GenerateRustLib(packageSchema *scalefile.Schema) ([]byte, error)
- type Cargo
- type DependencyPath
- type DependencyVersion
- type Generator
- type Manifest
- func (m *Manifest) AddDependencyWithPath(dependency string, path DependencyPath) error
- func (m *Manifest) AddDependencyWithVersion(dependency string, version DependencyVersion) error
- func (m *Manifest) GetDependency(dependency string) *ParsedDependency
- func (m *Manifest) HasDependency(dependency string) bool
- func (m *Manifest) RemoveDependency(dependency string) error
- func (m *Manifest) Write() ([]byte, error)
- type ParsedDependency
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRustCargofile ¶
Types ¶
type Cargo ¶
type Cargo struct { CargoFeatures interface{} `toml:"cargo-features,omitempty"` Package interface{} `toml:"package,omitempty"` Lib interface{} `toml:"lib,omitempty"` Bin interface{} `toml:"bin,omitempty"` Example interface{} `toml:"example,omitempty"` Test interface{} `toml:"test,omitempty"` Bench interface{} `toml:"bench,omitempty"` Dependencies map[string]interface{} `toml:"dependencies,omitempty"` DevDependencies interface{} `toml:"dev-dependencies,omitempty"` BuildDependencies interface{} `toml:"build-dependencies,omitempty"` Target interface{} `toml:"target,omitempty"` Badges interface{} `toml:"badges,omitempty"` Features interface{} `toml:"features,omitempty"` Patch interface{} `toml:"patch,omitempty"` Replace interface{} `toml:"replace,omitempty"` Profile interface{} `toml:"profile,omitempty"` Workspace interface{} `toml:"workspace,omitempty"` }
type DependencyPath ¶
type DependencyVersion ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) GenerateRustCargofile ¶
type Manifest ¶
type Manifest struct {
// contains filtered or unexported fields
}
func ParseManifest ¶
func (*Manifest) AddDependencyWithPath ¶
func (m *Manifest) AddDependencyWithPath(dependency string, path DependencyPath) error
func (*Manifest) AddDependencyWithVersion ¶
func (m *Manifest) AddDependencyWithVersion(dependency string, version DependencyVersion) error
func (*Manifest) GetDependency ¶
func (m *Manifest) GetDependency(dependency string) *ParsedDependency
func (*Manifest) HasDependency ¶
func (*Manifest) RemoveDependency ¶
Click to show internal directories.
Click to hide internal directories.