From 613b66b2217d8bf61f3e682539e9137b35b76db9 Mon Sep 17 00:00:00 2001 From: Kohei Suzuki Date: Wed, 7 Sep 2022 00:56:41 +0900 Subject: [PATCH] json feature always requires base64 feature (#2668) It should fix build failure when only json feature is enabled. ``` % cargo build --no-default-features --features json error[E0433]: failed to resolve: use of undeclared crate or module `base64` --> parquet/src/record/api.rs:691:46 | 691 | Field::Bytes(b) => Value::String(base64::encode(b.data())), | ^^^^^^ use of undeclared crate or module `base64` For more information about this error, try `rustc --explain E0433`. error: could not compile `parquet` due to previous error ``` --- parquet/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parquet/Cargo.toml b/parquet/Cargo.toml index eb03033c52df..6ddb3a615a2e 100644 --- a/parquet/Cargo.toml +++ b/parquet/Cargo.toml @@ -74,7 +74,7 @@ arrow = ["dep:arrow", "base64"] # Enable CLI tools cli = ["json", "base64", "clap", "arrow/csv"] # Enable JSON APIs -json = ["serde_json"] +json = ["serde_json", "base64"] # Enable internal testing APIs test_common = ["arrow/test_utils"] # Experimental, unstable functionality primarily used for testing