From 7f2c8e6344572393434f88cc2d21777ff9634178 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 31 Jan 2023 14:54:58 -0600 Subject: [PATCH] Fix some warnings on nightly Rust (#5668) * Fix some warnings on nightly Rust Cargo is warning about the usage of workspace dependencies where the workspace declaration does not mention `default-features` but the dependency mentions `default-features`, so this explicitly turns off default features for `cranelift-codegen` at the workspace level and removes the explicit `default-features = false` at the manifest levels. * Explicitly enable default feature in wasmtime * Enable another feature --- cranelift/frontend/Cargo.toml | 2 +- cranelift/jit/Cargo.toml | 2 +- cranelift/module/Cargo.toml | 2 +- cranelift/native/Cargo.toml | 4 ++-- cranelift/object/Cargo.toml | 2 +- cranelift/wasm/Cargo.toml | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cranelift/frontend/Cargo.toml b/cranelift/frontend/Cargo.toml index bb68f5e8d1..eafcf74e90 100644 --- a/cranelift/frontend/Cargo.toml +++ b/cranelift/frontend/Cargo.toml @@ -11,7 +11,7 @@ readme = "README.md" edition.workspace = true [dependencies] -cranelift-codegen = { workspace = true, default-features = false } +cranelift-codegen = { workspace = true } target-lexicon = { workspace = true } log = { workspace = true } hashbrown = { workspace = true, optional = true } diff --git a/cranelift/jit/Cargo.toml b/cranelift/jit/Cargo.toml index 34114cf528..554e449ec9 100644 --- a/cranelift/jit/Cargo.toml +++ b/cranelift/jit/Cargo.toml @@ -12,7 +12,7 @@ edition.workspace = true [dependencies] cranelift-module = { workspace = true } cranelift-native = { workspace = true } -cranelift-codegen = { workspace = true, default-features = false, features = ["std"] } +cranelift-codegen = { workspace = true, features = ["std"] } cranelift-entity = { workspace = true } anyhow = { workspace = true } region = "2.2.0" diff --git a/cranelift/module/Cargo.toml b/cranelift/module/Cargo.toml index 4e27af4b1a..036a84e98a 100644 --- a/cranelift/module/Cargo.toml +++ b/cranelift/module/Cargo.toml @@ -11,7 +11,7 @@ readme = "README.md" edition.workspace = true [dependencies] -cranelift-codegen = { workspace = true, default-features = false } +cranelift-codegen = { workspace = true } hashbrown = { workspace = true, optional = true } anyhow = { workspace = true } diff --git a/cranelift/native/Cargo.toml b/cranelift/native/Cargo.toml index 3e7c53106d..776d3eb4b6 100644 --- a/cranelift/native/Cargo.toml +++ b/cranelift/native/Cargo.toml @@ -11,7 +11,7 @@ readme = "README.md" edition.workspace = true [dependencies] -cranelift-codegen = { workspace = true, default-features = false } +cranelift-codegen = { workspace = true } target-lexicon = { workspace = true } [target.'cfg(any(target_arch = "s390x", target_arch = "riscv64"))'.dependencies] @@ -24,4 +24,4 @@ core = ["cranelift-codegen/core"] [badges] maintenance = { status = "experimental" } - + diff --git a/cranelift/object/Cargo.toml b/cranelift/object/Cargo.toml index c9f7ac1c35..e0d71aa41a 100644 --- a/cranelift/object/Cargo.toml +++ b/cranelift/object/Cargo.toml @@ -11,7 +11,7 @@ edition.workspace = true [dependencies] cranelift-module = { workspace = true } -cranelift-codegen = { workspace = true, default-features = false, features = ["std"] } +cranelift-codegen = { workspace = true, features = ["std"] } object = { workspace = true, features = ["write"] } target-lexicon = { workspace = true } anyhow = { workspace = true } diff --git a/cranelift/wasm/Cargo.toml b/cranelift/wasm/Cargo.toml index af92764fcc..671aa9e577 100644 --- a/cranelift/wasm/Cargo.toml +++ b/cranelift/wasm/Cargo.toml @@ -13,9 +13,9 @@ edition.workspace = true [dependencies] wasmparser = { workspace = true } -cranelift-codegen = { workspace = true, default-features = false } +cranelift-codegen = { workspace = true } cranelift-entity = { workspace = true } -cranelift-frontend = { workspace = true, default-features = false } +cranelift-frontend = { workspace = true } wasmtime-types = { workspace = true } hashbrown = { workspace = true, optional = true } itertools = "0.10.0"