Documentation
¶
Index ¶
Constants ¶
View Source
const CargoTomlFile = "Cargo.toml"
Variables ¶
View Source
var CachedRustFile = utils.Cached1In1OutErr(rust_grammar.Parse)
View Source
var Extensions = []string{
"rs",
}
View Source
var MakeModTree = utils.Cached1In1OutErr(func(mainPath string) (*ModTree, error) { return makeModTree(mainPath, "crate", nil) })
MakeModTree builds the ModTree given the main library/executable file path (src/lib.rs or src/main.rs).
Functions ¶
func MakeRustLanguage ¶
Types ¶
type CargoToml ¶ added in v0.18.0
type CargoToml struct { // It's [dev-]dependencies. Dependencies map[string]localDependency // contains filtered or unexported fields }
type Language ¶
type Language struct{}
func (*Language) ParseExports ¶
func (l *Language) ParseExports(file *rust_grammar.File) (*language.ExportsEntries, error)
func (*Language) ParseImports ¶
func (l *Language) ParseImports(file *rust_grammar.File) (*language.ImportsResult, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.