Skip to content

Commit 7fa0f77

Browse files
committed
2018 -> 2021
1 parent 2310936 commit 7fa0f77

File tree

16 files changed

+40
-20
lines changed

16 files changed

+40
-20
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ jobs:
287287
export ARROW_TEST_DATA=$(pwd)/testing/data
288288
export PARQUET_TEST_DATA=$(pwd)/parquet-testing/data
289289
290+
rustup toolchain install stable
291+
rustup default stable
290292
cargo install --version 0.18.2 cargo-tarpaulin
291293
cargo tarpaulin --all --out Xml
292294
- name: Report coverage

arrow-flight/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
name = "arrow-flight"
2020
description = "Apache Arrow Flight"
2121
version = "7.0.0-SNAPSHOT"
22-
edition = "2018"
22+
edition = "2021"
23+
rust-version = "1.56"
2324
authors = ["Apache Arrow <dev@arrow.apache.org>"]
2425
homepage = "https://github.com/apache/arrow-rs"
2526
repository = "https://github.com/apache/arrow-rs"

arrow-pyarrow-integration-testing/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ repository = "https://github.com/apache/arrow-rs"
2424
authors = ["Apache Arrow <dev@arrow.apache.org>"]
2525
license = "Apache-2.0"
2626
keywords = [ "arrow" ]
27-
edition = "2018"
27+
edition = "2021"
28+
rust-version = "1.56"
2829

2930
[lib]
3031
name = "arrow_pyarrow_integration_testing"

arrow/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ include = [
2929
"src/**/*.rs",
3030
"Cargo.toml",
3131
]
32-
edition = "2018"
32+
edition = "2021"
33+
rust-version = "1.56"
3334

3435
[lib]
3536
name = "arrow"

arrow/src/array/transform/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ fn build_extend_dictionary(
182182
max: usize,
183183
) -> Option<Extend> {
184184
use crate::datatypes::*;
185-
use std::convert::TryInto;
186-
187185
match array.data_type() {
188186
DataType::Dictionary(child_data_type, _) => match child_data_type.as_ref() {
189187
DataType::UInt8 => {

arrow/test/dependency/default-features/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
name = "defeault-features"
2020
description = "Models a user application of arrow that uses default features of arrow"
2121
version = "0.1.0"
22-
edition = "2018"
22+
edition = "2021"
23+
rust-version = "1.56"
2324

2425
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2526

arrow/test/dependency/no-default-features/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
name = "no-default-features"
2020
description = "Models a user application of arrow that specifies no-default-features=true"
2121
version = "0.1.0"
22-
edition = "2018"
22+
edition = "2021"
23+
rust-version = "1.56"
2324

2425
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2526

arrow/test/dependency/simd/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
name = "defeault-features"
2020
description = "Models a user application of arrow that uses the simd feature of arrow"
2121
version = "0.1.0"
22-
edition = "2018"
22+
edition = "2021"
23+
rust-version = "1.56"
2324

2425
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2526

integration-testing/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ homepage = "https://github.com/apache/arrow-rs"
2323
repository = "https://github.com/apache/arrow-rs"
2424
authors = ["Apache Arrow <dev@arrow.apache.org>"]
2525
license = "Apache-2.0"
26-
edition = "2018"
26+
edition = "2021"
2727
publish = false
28+
rust-version = "1.56"
2829

2930
[features]
3031
logging = ["tracing-subscriber"]

parquet/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ authors = ["Apache Arrow <dev@arrow.apache.org>"]
2626
keywords = [ "arrow", "parquet", "hadoop" ]
2727
readme = "README.md"
2828
build = "build.rs"
29-
edition = "2018"
29+
edition = "2021"
30+
rust-version = "1.56"
3031

3132
[dependencies]
3233
# update note: pin `parquet-format` to specific version until it does not break at minor

parquet_derive/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ repository = "https://github.com/apache/arrow-rs"
2525
authors = ["Apache Arrow <dev@arrow.apache.org>"]
2626
keywords = [ "parquet" ]
2727
readme = "README.md"
28-
edition = "2018"
28+
edition = "2021"
29+
rust-version = "1.56"
2930

3031
[lib]
3132
proc-macro = true

parquet_derive/README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@ supported.
2727
Derive also has some support for the chrono time library. You must must enable the `chrono` feature to get this support.
2828

2929
## Usage
30+
3031
Add this to your Cargo.toml:
32+
3133
```toml
3234
[dependencies]
3335
parquet = "7.0.0-SNAPSHOT"
3436
parquet_derive = "7.0.0-SNAPSHOT"
3537
```
3638

3739
and this to your crate root:
40+
3841
```rust
3942
extern crate parquet;
4043
#[macro_use] extern crate parquet_derive;
@@ -75,24 +78,29 @@ writer.close().unwrap();
7578
```
7679

7780
## Features
78-
- [X] Support writing `String`, `&str`, `bool`, `i32`, `f32`, `f64`, `Vec<u8>`
81+
82+
- [x] Support writing `String`, `&str`, `bool`, `i32`, `f32`, `f64`, `Vec<u8>`
7983
- [ ] Support writing dictionaries
80-
- [X] Support writing logical types like timestamp
81-
- [X] Derive definition_levels for `Option`
84+
- [x] Support writing logical types like timestamp
85+
- [x] Derive definition_levels for `Option`
8286
- [ ] Derive definition levels for nested structures
8387
- [ ] Derive writing tuple struct
8488
- [ ] Derive writing `tuple` container types
8589

8690
## Requirements
91+
8792
- Same as `parquet-rs`
8893

8994
## Test
95+
9096
Testing a `*_derive` crate requires an intermediate crate. Go to `parquet_derive_test` and run `cargo test` for
9197
unit tests.
9298

9399
## Docs
100+
94101
To build documentation, run `cargo doc --no-deps`.
95102
To compile and view in the browser, run `cargo doc --no-deps --open`.
96103

97104
## License
105+
98106
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0.

parquet_derive/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern crate quote;
2525

2626
extern crate parquet;
2727

28-
use syn::{parse_macro_input, Data, DataStruct, DeriveInput};
28+
use ::syn::{parse_macro_input, Data, DataStruct, DeriveInput};
2929

3030
mod parquet_field;
3131

@@ -103,7 +103,7 @@ pub fn parquet_record_writer(input: proc_macro::TokenStream) -> proc_macro::Toke
103103
impl #generics RecordWriter<#derived_for #generics> for &[#derived_for #generics] {
104104
fn write_to_row_group(
105105
&self,
106-
row_group_writer: &mut Box<parquet::file::writer::RowGroupWriter>
106+
row_group_writer: &mut Box<dyn parquet::file::writer::RowGroupWriter>
107107
) -> Result<(), parquet::errors::ParquetError> {
108108
let mut row_group_writer = row_group_writer;
109109
let records = &self; // Used by all the writer snippets to be more clear

parquet_derive/test/dependency/default-features/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
name = "defeault-features"
2020
description = "Models a user application of parquet_derive that uses no additional features of arrow"
2121
version = "0.1.0"
22-
edition = "2018"
22+
edition = "2021"
23+
rust-version = "1.56"
2324

2425
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2526

parquet_derive_test/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ homepage = "https://github.com/apache/arrow-rs"
2424
repository = "https://github.com/apache/arrow-rs"
2525
authors = ["Apache Arrow <dev@arrow.apache.org>"]
2626
keywords = [ "parquet" ]
27-
edition = "2018"
27+
edition = "2021"
2828
publish = false
29+
rust-version = "1.56"
2930

3031
[dependencies]
3132
parquet = { path = "../parquet", version = "7.0.0-SNAPSHOT" }
3233
parquet_derive = { path = "../parquet_derive", version = "7.0.0-SNAPSHOT" }
33-
chrono = "0.4.19"
34+
chrono = "0.4.19"

rustfmt.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
edition = "2018"
18+
edition = "2021"
19+
rust-version = "1.56"
1920
max_width = 90
2021

2122
# ignore generated files

0 commit comments

Comments
 (0)