Skip to content

Commit

Permalink
json feature always requires base64 feature (#2668)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
eagletmt committed Sep 6, 2022
1 parent a37c038 commit 613b66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parquet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 613b66b

Please sign in to comment.