mirror of
https://github.com/esp-rs/espup.git
synced 2025-10-01 06:40:34 +00:00
chore: 🎨 Document name trait
This commit is contained in:
parent
bbab6d4593
commit
548662ad53
@ -31,7 +31,7 @@ pub enum Error {
|
||||
IoError(#[from] std::io::Error),
|
||||
#[error(transparent)]
|
||||
RewquestError(#[from] reqwest::Error),
|
||||
#[diagnostic(code(espup::toolchain::failed_to_create_difrectory))]
|
||||
#[diagnostic(code(espup::toolchain::failed_to_create_directory))]
|
||||
#[error("{} Creating directory '{0}' failed", emoji::ERROR)]
|
||||
FailedToCreateDirectory(String),
|
||||
#[diagnostic(code(espup::toolchain::unsupported_file_extension))]
|
||||
|
@ -24,6 +24,7 @@ pub mod rust;
|
||||
pub trait Installable {
|
||||
/// Install some application, returning a vector of any required exports
|
||||
async fn install(&self) -> Result<Vec<String>, Error>;
|
||||
/// Returns the name of the toolchain being installeds
|
||||
fn name(&self) -> String;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user