Skip to content

Commit

Permalink
Split out arrow-json (#3044) (#3049)
Browse files Browse the repository at this point in the history
* Split out arrow-json (#3044)

* RAT

* Fix feature

* Revert no_run

* RAT
  • Loading branch information
tustvold committed Nov 9, 2022
1 parent fe3318b commit 8d75101
Show file tree
Hide file tree
Showing 23 changed files with 194 additions and 137 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/arrow.yml
Expand Up @@ -35,6 +35,7 @@ on:
- arrow-integration-test/**
- arrow-ipc/**
- arrow-csv/**
- arrow-json/**
- .github/**

jobs:
Expand Down Expand Up @@ -67,6 +68,8 @@ jobs:
run: cargo test -p arrow-ipc --all-features
- name: Test arrow-csv with all features
run: cargo test -p arrow-csv --all-features
- name: Test arrow-json with all features
run: cargo test -p arrow-json --all-features
- name: Test arrow-integration-test with all features
run: cargo test -p arrow-integration-test --all-features
- name: Test arrow with default features
Expand Down Expand Up @@ -179,5 +182,7 @@ jobs:
run: cargo clippy -p arrow-ipc --all-targets --all-features -- -D warnings
- name: Clippy arrow-csv with all features
run: cargo clippy -p arrow-csv --all-targets --all-features -- -D warnings
- name: Clippy arrow-json with all features
run: cargo clippy -p arrow-json --all-targets --all-features -- -D warnings
- name: Clippy arrow
run: cargo clippy -p arrow --features=prettyprint,csv,ipc,test_utils,ffi,ipc_compression,dyn_cmp_dict,dyn_arith_dict,chrono-tz --all-targets -- -D warnings
1 change: 1 addition & 0 deletions .github/workflows/arrow_flight.yml
Expand Up @@ -37,6 +37,7 @@ on:
- arrow-flight/**
- arrow-ipc/**
- arrow-csv/**
- arrow-json/**
- .github/**

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dev_pr/labeler.yml
Expand Up @@ -25,6 +25,7 @@ arrow:
- arrow-select/**/*
- arrow-ipc/**/*
- arrow-csv/**/*
- arrow-json/**/*

arrow-flight:
- arrow-flight/**/*
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/integration.yml
Expand Up @@ -33,6 +33,7 @@ on:
- arrow-select/**
- arrow-ipc/**
- arrow-csv/**
- arrow-json/**
- arrow-pyarrow-integration-testing/**
- arrow-integration-test/**
- arrow-integration-testing/**
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/miri.yaml
Expand Up @@ -33,6 +33,7 @@ on:
- arrow-select/**
- arrow-ipc/**
- arrow-csv/**
- arrow-json/**
- .github/**

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/parquet.yml
Expand Up @@ -36,6 +36,7 @@ on:
- arrow-select/**
- arrow-ipc/**
- arrow-csv/**
- arrow-json/**
- parquet/**
- .github/**

Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Expand Up @@ -27,12 +27,13 @@ members = [
"arrow-integration-test",
"arrow-integration-testing",
"arrow-ipc",
"arrow-json",
"arrow-schema",
"arrow-select",
"object_store",
"parquet",
"parquet_derive",
"parquet_derive_test",
"object_store",
]
# Enable the version 2 feature resolver, which avoids unifying features for targets that are not being built
#
Expand Down
54 changes: 54 additions & 0 deletions arrow-json/Cargo.toml
@@ -0,0 +1,54 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

[package]
name = "arrow-json"
version = "26.0.0"
description = "Support for parsing JSON format into the Arrow format"
homepage = "https://github.com/apache/arrow-rs"
repository = "https://github.com/apache/arrow-rs"
authors = ["Apache Arrow <dev@arrow.apache.org>"]
license = "Apache-2.0"
keywords = ["arrow"]
include = [
"benches/*.rs",
"src/**/*.rs",
"Cargo.toml",
]
edition = "2021"
rust-version = "1.62"

[lib]
name = "arrow_json"
path = "src/lib.rs"
bench = false

[dependencies]
arrow-array = { version = "26.0.0", path = "../arrow-array" }
arrow-buffer = { version = "26.0.0", path = "../arrow-buffer" }
arrow-cast = { version = "26.0.0", path = "../arrow-cast" }
arrow-data = { version = "26.0.0", path = "../arrow-data" }
arrow-schema = { version = "26.0.0", path = "../arrow-schema" }
half = { version = "2.1", default-features = false }
indexmap = { version = "1.9", default-features = false, features = ["std"] }
num = { version = "0.4", default-features = false, features = ["std"] }
serde_json = { version = "1.0", default-features = false, features = ["std"] }
chrono = { version = "0.4", default-features = false, features = ["clock"] }

[dev-dependencies]
tempfile = "3.3"
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
File renamed without changes.

0 comments on commit 8d75101

Please sign in to comment.