From e7f3bb9df599b3b1ae6a9686815241dbe079a849 Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Fri, 8 Dec 2023 16:48:48 +0000 Subject: [PATCH] Update .cargo/config.toml files to use `target.'cfg(all())'` --- .../derive_opportunity/.cargo/config.toml | 11 +---------- .../missing_doc_comment_openai/.cargo/config.toml | 11 +---------- examples/general/.cargo/config.toml | 11 +---------- examples/restriction/.cargo/config.toml | 11 +---------- examples/supplementary/.cargo/config.toml | 11 +---------- examples/testing/clippy/.cargo/config.toml | 11 +---------- examples/testing/marker/.cargo/config.toml | 11 +---------- examples/testing/straggler/.cargo/config.toml | 11 +---------- internal/template/.cargo/config.toml | 11 +---------- 9 files changed, 9 insertions(+), 90 deletions(-) diff --git a/examples/experimental/derive_opportunity/.cargo/config.toml b/examples/experimental/derive_opportunity/.cargo/config.toml index 1cf357f7b..4f8093829 100644 --- a/examples/experimental/derive_opportunity/.cargo/config.toml +++ b/examples/experimental/derive_opportunity/.cargo/config.toml @@ -1,14 +1,5 @@ [build] target-dir = "../../../target/examples" -[target.aarch64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-unknown-linux-gnu] -linker = "dylint-link" - -[target.x86_64-pc-windows-msvc] +[target.'cfg(all())'] linker = "dylint-link" diff --git a/examples/experimental/missing_doc_comment_openai/.cargo/config.toml b/examples/experimental/missing_doc_comment_openai/.cargo/config.toml index 1cf357f7b..4f8093829 100644 --- a/examples/experimental/missing_doc_comment_openai/.cargo/config.toml +++ b/examples/experimental/missing_doc_comment_openai/.cargo/config.toml @@ -1,14 +1,5 @@ [build] target-dir = "../../../target/examples" -[target.aarch64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-unknown-linux-gnu] -linker = "dylint-link" - -[target.x86_64-pc-windows-msvc] +[target.'cfg(all())'] linker = "dylint-link" diff --git a/examples/general/.cargo/config.toml b/examples/general/.cargo/config.toml index 13fe6261d..38fc47d20 100644 --- a/examples/general/.cargo/config.toml +++ b/examples/general/.cargo/config.toml @@ -1,14 +1,5 @@ [build] target-dir = "../../target/examples" -[target.aarch64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-unknown-linux-gnu] -linker = "dylint-link" - -[target.x86_64-pc-windows-msvc] +[target.'cfg(all())'] linker = "dylint-link" diff --git a/examples/restriction/.cargo/config.toml b/examples/restriction/.cargo/config.toml index 13fe6261d..38fc47d20 100644 --- a/examples/restriction/.cargo/config.toml +++ b/examples/restriction/.cargo/config.toml @@ -1,14 +1,5 @@ [build] target-dir = "../../target/examples" -[target.aarch64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-unknown-linux-gnu] -linker = "dylint-link" - -[target.x86_64-pc-windows-msvc] +[target.'cfg(all())'] linker = "dylint-link" diff --git a/examples/supplementary/.cargo/config.toml b/examples/supplementary/.cargo/config.toml index 13fe6261d..38fc47d20 100644 --- a/examples/supplementary/.cargo/config.toml +++ b/examples/supplementary/.cargo/config.toml @@ -1,14 +1,5 @@ [build] target-dir = "../../target/examples" -[target.aarch64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-unknown-linux-gnu] -linker = "dylint-link" - -[target.x86_64-pc-windows-msvc] +[target.'cfg(all())'] linker = "dylint-link" diff --git a/examples/testing/clippy/.cargo/config.toml b/examples/testing/clippy/.cargo/config.toml index 1cf357f7b..4f8093829 100644 --- a/examples/testing/clippy/.cargo/config.toml +++ b/examples/testing/clippy/.cargo/config.toml @@ -1,14 +1,5 @@ [build] target-dir = "../../../target/examples" -[target.aarch64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-unknown-linux-gnu] -linker = "dylint-link" - -[target.x86_64-pc-windows-msvc] +[target.'cfg(all())'] linker = "dylint-link" diff --git a/examples/testing/marker/.cargo/config.toml b/examples/testing/marker/.cargo/config.toml index 1cf357f7b..4f8093829 100644 --- a/examples/testing/marker/.cargo/config.toml +++ b/examples/testing/marker/.cargo/config.toml @@ -1,14 +1,5 @@ [build] target-dir = "../../../target/examples" -[target.aarch64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-unknown-linux-gnu] -linker = "dylint-link" - -[target.x86_64-pc-windows-msvc] +[target.'cfg(all())'] linker = "dylint-link" diff --git a/examples/testing/straggler/.cargo/config.toml b/examples/testing/straggler/.cargo/config.toml index 34d23821e..c78451e95 100644 --- a/examples/testing/straggler/.cargo/config.toml +++ b/examples/testing/straggler/.cargo/config.toml @@ -2,14 +2,5 @@ # smoelius: `straggler` uses a different compiler version than the other example libraries. target-dir = "../../../target/straggler" -[target.aarch64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-unknown-linux-gnu] -linker = "dylint-link" - -[target.x86_64-pc-windows-msvc] +[target.'cfg(all())'] linker = "dylint-link" diff --git a/internal/template/.cargo/config.toml b/internal/template/.cargo/config.toml index 46d15711a..93dceb699 100644 --- a/internal/template/.cargo/config.toml +++ b/internal/template/.cargo/config.toml @@ -1,11 +1,2 @@ -[target.aarch64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-apple-darwin] -linker = "dylint-link" - -[target.x86_64-unknown-linux-gnu] -linker = "dylint-link" - -[target.x86_64-pc-windows-msvc] +[target.'cfg(all())'] linker = "dylint-link"