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 b368f3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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
7 changes: 2 additions & 5 deletions tests/test_samples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,10 @@ fn all_the_fields() {
assert_eq!(all.targets.len(), 8);
let lib = get_file_name!("lib.rs");
assert_eq!(lib.name, "all");
assert_eq!(
sorted!(lib.kind),
vec!["cdylib", "dylib", "rlib", "staticlib"]
);
assert_eq!(sorted!(lib.kind), 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 b368f3e

Please sign in to comment.