[−][src]Function arduinors::cli::compile
pub fn compile(sketch: &Path) -> Result<(), Error>
Compiles a sketch at a given path, for the currently connected Arduino. The given path should point to the sketch directory, not file.
Errors
This function calls arduino::cli::query
, and will pass along any errors produced by it.
CommandFailure
, if thearduino-cli
command fails or an error occurs during compilation.InvalidSketchPath
, if the sketch does not have the format required for Arduino sketches.