From b368f3e7c87fdc870683eb9cae68145601b718f0 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 15 Feb 2022 09:35:42 -0800 Subject: [PATCH] Fix tests due to dylib/cdylib error. Cargo no longer allows to set both cdylib and dylib at the same time (since it didn't work): https://github.com/rust-lang/cargo/pull/10243 --- tests/all/Cargo.toml | 2 +- tests/test_samples.rs | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/all/Cargo.toml b/tests/all/Cargo.toml index 435dfaf4..b5e833b8 100644 --- a/tests/all/Cargo.toml +++ b/tests/all/Cargo.toml @@ -44,7 +44,7 @@ feat1 = [] feat2 = [] [lib] -crate-type = ["rlib", "cdylib", "dylib", "staticlib"] +crate-type = ["rlib", "cdylib", "staticlib"] [[bin]] name = "otherbin" diff --git a/tests/test_samples.rs b/tests/test_samples.rs index c5d9c3ce..9ed501cb 100644 --- a/tests/test_samples.rs +++ b/tests/test_samples.rs @@ -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");