ronin.rust¶
-
class
ronin.rust.CargoBuild(command=None, jobs=None)¶ Bases:
ronin.executors.ExecutorWithArgumentsThe 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 (basestring or FunctionType) –
cargocommand; defaults to the context’srust.cargo_command - jobs (int) – number of jobs; defaults to CPU count + 1
-
enable_release()¶
-
jobs(value)¶
- command (basestring or FunctionType) –
-
class
ronin.rust.RustBuild(command=None)¶ Bases:
ronin.executors.ExecutorWithArgumentsRust 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 (basestring or FunctionType) – rustccommand; 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 (basestring or FunctionType) –
rustccommand; defaults to “rustc” - cargo_command (basestring or FunctionType) –
cargocommand; defaults to “cargo”
- rustc_command (basestring or FunctionType) –