MStrap::RuntimeManagers::Rustup
Inherits MStrap::RuntimeManager / MStrap::DSL / MStrap::DSL::System / MStrap::DSL::Logging / Reference / Object
Instance methods
current_version(language_name : String) : String | Nil
Sourcehas_plugin?(language_name : String) : Bool
Returns whether the mise plugin has been installed for a language runtime or not
install_plugin(language_name : String) : Bool
Sourceinstall_version(language_name : String, version : String) : Bool
Sourceinstalled_versions(language_name : String) : Array(String)
Returns a list of the versions of the language runtime installed by mise.
latest_version(language_name : String) : String
Rustup doesn't support querying this, but "stable" is probably safe
plugin_name(language_name : String) : String | Nil
Rust is the only language managed by rustup, so this is always "rust"!
runtime_exec(language_name : String, command : String, args : Array(String) | Nil = nil, runtime_version : String | Nil = nil)
Execute a command using a specific language runtime version
set_global_version(language_name, version : String) : Bool
Sourceset_version(language_name : String, version : String | Nil) : Bool
Sourceshell_activation(shell_name : String) : String
Sourcesupported_languages
Source