diff --git a/crates/fj-host/src/lib.rs b/crates/fj-host/src/lib.rs index f3d3847bf..57c133714 100644 --- a/crates/fj-host/src/lib.rs +++ b/crates/fj-host/src/lib.rs @@ -90,8 +90,9 @@ impl Model { let mut command_root = Command::new("cargo"); let command = command_root - .arg("build") - .args(["--manifest-path", &manifest_path]); + .arg("rustc") + .args(["--manifest-path", &manifest_path]) + .args(["--crate-type", "cdylib"]); let cargo_output = command.output()?; let exit_status = cargo_output.status; diff --git a/models/cuboid/Cargo.toml b/models/cuboid/Cargo.toml index bb653d0c8..42746d61c 100644 --- a/models/cuboid/Cargo.toml +++ b/models/cuboid/Cargo.toml @@ -3,8 +3,5 @@ name = "cuboid" version = "0.1.0" edition = "2021" -[lib] -crate-type = ["cdylib"] - [dependencies.fj] path = "../../crates/fj" diff --git a/models/spacer/Cargo.toml b/models/spacer/Cargo.toml index 1eaf19c6a..a83c4c299 100644 --- a/models/spacer/Cargo.toml +++ b/models/spacer/Cargo.toml @@ -3,8 +3,5 @@ name = "spacer" version = "0.1.0" edition = "2021" -[lib] -crate-type = ["cdylib"] - [dependencies.fj] path = "../../crates/fj" diff --git a/models/star/Cargo.toml b/models/star/Cargo.toml index c5c2d4efd..0279bef41 100644 --- a/models/star/Cargo.toml +++ b/models/star/Cargo.toml @@ -3,8 +3,5 @@ name = "star" version = "0.1.0" edition = "2021" -[lib] -crate-type = ["cdylib"] - [dependencies.fj] path = "../../crates/fj" diff --git a/models/test/Cargo.toml b/models/test/Cargo.toml index dd9fa6bc0..c70a94aa4 100644 --- a/models/test/Cargo.toml +++ b/models/test/Cargo.toml @@ -7,8 +7,5 @@ homepage = "https://www.fornjot.app/" repository = "https://github.com/hannobraun/fornjot" license = "0BSD" -[lib] -crate-type = ["cdylib"] - [dependencies.fj] path = "../../crates/fj"