Merge pull request #1209 from hannobraun/rustc

Remove need to specify `crate-type` in `Cargo.toml`
This commit is contained in:
Hanno Braun 2022-10-12 12:32:50 +02:00 committed by GitHub
commit 986cf86dda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 14 deletions

View File

@ -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;

View File

@ -3,8 +3,5 @@ name = "cuboid"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib"]
[dependencies.fj]
path = "../../crates/fj"

View File

@ -3,8 +3,5 @@ name = "spacer"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib"]
[dependencies.fj]
path = "../../crates/fj"

View File

@ -3,8 +3,5 @@ name = "star"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib"]
[dependencies.fj]
path = "../../crates/fj"

View File

@ -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"