Skip to content

Commit

Permalink
Fix tests due to dylib/cdylib error.
Browse files Browse the repository at this point in the history
Cargo no longer allows to set both cdylib and dylib at the same time
(since it didn't work): rust-lang/cargo#10243
  • Loading branch information
ehuss committed Feb 15, 2022
1 parent 06a5cf9 commit 1dcb1d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/all/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ feat1 = []
feat2 = []

[lib]
crate-type = ["rlib", "cdylib", "dylib", "staticlib"]
crate-type = ["rlib", "cdylib", "staticlib"]

[[bin]]
name = "otherbin"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_samples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,11 @@ fn all_the_fields() {
assert_eq!(lib.name, "all");
assert_eq!(
sorted!(lib.kind),
vec!["cdylib", "dylib", "rlib", "staticlib"]
vec!["cdylib", "rlib", "staticlib"]
);
assert_eq!(
sorted!(lib.crate_types),
vec!["cdylib", "dylib", "rlib", "staticlib"]
vec!["cdylib", "rlib", "staticlib"]
);
assert_eq!(lib.required_features.len(), 0);
assert_eq!(lib.edition, "2018");
Expand Down

0 comments on commit 1dcb1d2

Please sign in to comment.