Explicitly specify crate type when compiling model

This removes the need for specifying the crate type in the model's
`Cargo.toml`.
This commit is contained in:
Hanno Braun 2022-10-12 12:19:01 +02:00
parent 5a98962c15
commit ccdc4bdeeb

View File

@ -91,7 +91,8 @@ impl Model {
let command = command_root
.arg("rustc")
.args(["--manifest-path", &manifest_path]);
.args(["--manifest-path", &manifest_path])
.args(["--crate-type", "cdylib"]);
let cargo_output = command.output()?;
let exit_status = cargo_output.status;