From ae9a96b7add077a27dc76c99a1a7fd314387bda0 Mon Sep 17 00:00:00 2001
From: Adam Gutglick <adam@spiraldb.com>
Date: Thu, 30 Jan 2025 14:14:30 +0000
Subject: [PATCH] chore: Fix `vortex-array` dependency's features on
 `vortex-scalar` (#2153)

the `arbitrary` feature should (almost) always be feature-flagged
---
 vortex-array/Cargo.toml | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/vortex-array/Cargo.toml b/vortex-array/Cargo.toml
index 9e0f06a9fd..bcdf53f636 100644
--- a/vortex-array/Cargo.toml
+++ b/vortex-array/Cargo.toml
@@ -52,17 +52,21 @@ static_assertions = { workspace = true }
 vortex-buffer = { workspace = true, features = ["arrow", "rkyv"] }
 vortex-datetime-dtype = { workspace = true }
 vortex-dtype = { workspace = true, features = ["rkyv", "serde"] }
-vortex-error = { workspace = true, features = ["flatbuffers", "flexbuffers", "rancor"] }
-vortex-flatbuffers = { workspace = true, features = ["array"] }
-vortex-mask = { workspace = true }
-vortex-scalar = { workspace = true, features = [
+vortex-error = { workspace = true, features = [
     "flatbuffers",
-    "serde",
-    "arbitrary",
+    "flexbuffers",
+    "rancor",
 ] }
+vortex-flatbuffers = { workspace = true, features = ["array"] }
+vortex-mask = { workspace = true }
+vortex-scalar = { workspace = true, features = ["flatbuffers", "serde"] }
 
 [features]
-arbitrary = ["dep:arbitrary", "vortex-dtype/arbitrary"]
+arbitrary = [
+    "dep:arbitrary",
+    "vortex-dtype/arbitrary",
+    "vortex-scalar/arbitrary",
+]
 test-harness = ["dep:goldenfile"]
 canonical_counter = []