Documentation
¶
Index ¶
- func GenerateRustCargofile(signatureInfo *SignatureInfo, functionInfo *FunctionInfo) ([]byte, error)
- func GenerateRustLib(scalefileSchema *scalefile.Schema, functionInfo *FunctionInfo) ([]byte, error)
- type Cargo
- type DependencyPath
- type DependencyVersion
- type ExtensionInfo
- type FunctionInfo
- 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
- type SignatureInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRustCargofile ¶
func GenerateRustCargofile(signatureInfo *SignatureInfo, functionInfo *FunctionInfo) ([]byte, error)
func GenerateRustLib ¶
func GenerateRustLib(scalefileSchema *scalefile.Schema, functionInfo *FunctionInfo) ([]byte, error)
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 ExtensionInfo ¶ added in v0.4.6
type ExtensionInfo struct {
// Local specifies whether the extension is a locally importable extension
Local bool
// PackageName is the name of the extension package
PackageName string
// ImportPath is the import path for the extension, if the extension is local this will be a path on disk
ImportPath string
// ImportVersion is the version of the extension to import, if the extension is local this will be ignored
ImportVersion string
}
ExtensionInfo is the import information for an Extension
type FunctionInfo ¶ added in v0.4.6
type FunctionInfo struct {
// PackageName is the name of the function package
PackageName string
// ImportPath is the import path for the function, always a path on disk
ImportPath string
}
FunctionInfo is the import information for a Function
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) GenerateRustCargofile ¶
func (g *Generator) GenerateRustCargofile(signatureInfo *SignatureInfo, functionInfo *FunctionInfo) ([]byte, error)
func (*Generator) GenerateRustLib ¶
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 ¶
type ParsedDependency ¶
type SignatureInfo ¶ added in v0.4.6
type SignatureInfo struct {
// Local specifies whether the signature is a locally importable signature
Local bool
// PackageName is the name of the signature package
PackageName string
// ImportPath is the import path for the signature, if the signature is local this will be a path on disk
ImportPath string
// ImportVersion is the version of the signature to import, if the signature is local this will be ignored
ImportVersion string
}
SignatureInfo is the import information for a Signature
Click to show internal directories.
Click to hide internal directories.