[][src]Struct arduino_cli_client::commands::CompileReq

pub struct CompileReq {
    pub instance: Option<Instance>,
    pub fqbn: String,
    pub sketch_path: String,
    pub show_properties: bool,
    pub preprocess: bool,
    pub build_cache_path: String,
    pub build_path: String,
    pub build_properties: Vec<String>,
    pub warnings: String,
    pub verbose: bool,
    pub quiet: bool,
    pub vid_pid: String,
    pub jobs: i32,
    pub libraries: Vec<String>,
    pub optimize_for_debug: bool,
    pub export_dir: String,
    pub clean: bool,
    pub export_binaries: bool,
}

Fields

instance: Option<Instance>

Arduino Core Service instance from the Init response.

fqbn: String

Fully Qualified Board Name, e.g.: arduino:avr:uno. If this field is not defined, the FQBN of the board attached to the sketch via the BoardAttach method is used.

sketch_path: String

The path where the sketch is stored.

show_properties: bool

Show all build preferences used instead of compiling.

preprocess: bool

Print preprocessed code to stdout instead of compiling.

build_cache_path: String

Builds of 'core.a' are saved into this path to be cached and reused.

build_path: String

Path to use to store the files used for the compilation. If omitted, a directory will be created in the operating system's default temporary path.

build_properties: Vec<String>

List of custom build properties separated by commas.

warnings: String

Used to tell gcc which warning level to use. The level names are: "none", "default", "more" and "all".

verbose: bool

Turns on verbose mode.

quiet: bool

Suppresses almost every output.

vid_pid: String

VID/PID specific build properties.

jobs: i32

The max number of concurrent compiler instances to run (as make -jx). If jobs is set to 0, it will use the number of available CPUs as the maximum.

libraries: Vec<String>

List of custom libraries paths separated by commas.

optimize_for_debug: bool

Optimize compile output for debug, not for release.

export_dir: String

Optional: save the build artifacts in this directory, the directory must exist.

clean: bool

Optional: cleanup the build folder and do not use any previously cached build

export_binaries: bool

When set to true the compiled binary will be copied to the export directory.

Trait Implementations

impl Clone for CompileReq[src]

impl Debug for CompileReq[src]

impl Default for CompileReq[src]

impl Message for CompileReq[src]

impl PartialEq<CompileReq> for CompileReq[src]

impl StructuralPartialEq for CompileReq[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]