ronin.rust
¶
-
class
ronin.rust.
CargoBuild
(command=None, jobs=None)¶ Bases:
ronin.executors.ExecutorWithArguments
The phase input is a “Cargo.toml” file.
Cargo will be doing all the heavy lifting. You just want to make sure that Ninja knows when to rebuild, so set the phase’s “output=” to equal your “[[bin]]” definition in Cargo.toml, and use “rebuild_on=” with the relevant source files.
Parameters: - command (str or FunctionType) –
cargo
command; defaults to the context’srust.cargo_command
- jobs (int) – number of jobs; defaults to CPU count + 1
-
enable_release
()¶
-
jobs
(value)¶
- command (str or FunctionType) –
-
class
ronin.rust.
RustBuild
(command=None)¶ Bases:
ronin.executors.ExecutorWithArguments
Rust build executor.
The phase inputs are “.rs” source files. The phase output is an executable (the default), an “.so” or “.dll” shared library, or a static library (“.a”).
Parameters: command (str or FunctionType) – rustc
command; defaults to the context’srust.rustc_command
-
enable_debug
()¶
-
-
ronin.rust.
configure_rust
(rustc_command=None, cargo_command=None)¶ Configures the current context’s Rust support.
Parameters: - rustc_command (str or FunctionType) –
rustc
command; defaults to “rustc” - cargo_command (str or FunctionType) –
cargo
command; defaults to “cargo”
- rustc_command (str or FunctionType) –