From b020e6e2ab9d9749a072f870e480e2d4e5d3a66a Mon Sep 17 00:00:00 2001 From: Raphael Taylor-Davies Date: Thu, 9 Jun 2022 15:08:15 +0100 Subject: [PATCH] Add docs --- Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 969341bccc20..2837f028e8c4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,6 +24,14 @@ members = [ "arrow-flight", "integration-testing", ] +# Enable the version 2 feature resolver, which avoids unifying features for targets that are not being built +# +# Critically this prevents dev-dependencies from enabling features even when not building a target that +# uses dev-dependencies, e.g. the library crate. This in turn ensures that we can catch invalid feature +# flag combinations that would otherwise only surface in dependent crates +# +# Reference - https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2 +# resolver = "2" # this package is excluded because it requires different compilation flags, thereby significantly changing