Skip to content

Commit

Permalink
Merge pull request #1209 from hannobraun/rustc
Browse files Browse the repository at this point in the history
Remove need to specify `crate-type` in `Cargo.toml`
  • Loading branch information
hannobraun authored Oct 12, 2022
2 parents 05b4ad8 + 2a9caa4 commit 986cf86
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 14 deletions.
5 changes: 3 additions & 2 deletions crates/fj-host/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions models/cuboid/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ name = "cuboid"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["cdylib"]

[dependencies.fj]
path = "../../crates/fj"
3 changes: 0 additions & 3 deletions models/spacer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ name = "spacer"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["cdylib"]

[dependencies.fj]
path = "../../crates/fj"
3 changes: 0 additions & 3 deletions models/star/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ name = "star"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["cdylib"]

[dependencies.fj]
path = "../../crates/fj"
3 changes: 0 additions & 3 deletions models/test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 986cf86

Please sign in to comment.