From ccdc4bdeeb47d0c114a051a45396060fad177e9a Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 12 Oct 2022 12:19:01 +0200 Subject: [PATCH] Explicitly specify crate type when compiling model This removes the need for specifying the crate type in the model's `Cargo.toml`. --- crates/fj-host/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/fj-host/src/lib.rs b/crates/fj-host/src/lib.rs index c0d227fd1..57c133714 100644 --- a/crates/fj-host/src/lib.rs +++ b/crates/fj-host/src/lib.rs @@ -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;