chore: use Rust edition 2021

pull/24376/head
Marco Neumann 2021-10-25 10:45:44 +02:00
parent 5593bd9988
commit bc7244c48e
51 changed files with 57 additions and 54 deletions

View File

@ -2,7 +2,7 @@
name = "influxdb_iox"
version = "0.1.0"
authors = ["Paul Dix <paul@pauldix.net>"]
edition = "2018"
edition = "2021"
default-run = "influxdb_iox"
readme = "README.md"

View File

@ -2,7 +2,7 @@
name = "arrow_util"
version = "0.1.0"
authors = ["Andrew Lamb <andrew@nerdnetworks.org>"]
edition = "2018"
edition = "2021"
description = "Apache Arrow utilities"
[dependencies]

View File

@ -3,7 +3,7 @@ name = "client_util"
version = "0.1.0"
authors = ["Raphael Taylor-Davies <r.taylordavies@googlemail.com>"]
description = "Shared code for IOx clients"
edition = "2018"
edition = "2021"
[dependencies]
http = "0.2.3"

View File

@ -3,7 +3,7 @@ name = "data_types"
version = "0.1.0"
authors = ["pauldix <paul@pauldix.net>"]
description = "InfluxDB IOx data_types, shared between IOx instances and IOx clients"
edition = "2018"
edition = "2021"
readme = "README.md"
[dependencies] # In alphabetical order

View File

@ -2,7 +2,7 @@
name = "datafusion"
version = "0.1.0"
authors = ["Andrew Lamb <andrew@nerdnetworks.org>"]
edition = "2018"
edition = "2021"
description = "Re-exports datafusion at a specific version"
[dependencies]

View File

@ -2,7 +2,7 @@
name = "datafusion_util"
version = "0.1.0"
authors = ["Andrew Lamb <andrew@nerdnetworks.org>"]
edition = "2018"
edition = "2021"
description = "Datafusion utilities"
[dependencies]

View File

@ -2,7 +2,7 @@
name = "entry"
version = "0.1.0"
authors = ["Paul Dix <paul@pauldix.net>"]
edition = "2018"
edition = "2021"
description = "The entry format used by the write buffer"
[dependencies]

View File

@ -2,7 +2,7 @@
name = "generated_types"
version = "0.1.0"
authors = ["Paul Dix <paul@pauldix.net>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order
bytes = "1.0"

View File

@ -2,7 +2,7 @@
name = "grpc-router"
version = "0.1.0"
authors = ["Marko Mikulicic <mkm@influxdata.com>"]
edition = "2018"
edition = "2021"
[dependencies]
bytes = "1.0"

View File

@ -2,7 +2,7 @@
name = "grpc-router-test-gen"
version = "0.1.0"
authors = ["Marko Mikulicic <mkm@influxdata.com>"]
edition = "2018"
edition = "2021"
description = "Protobuf used in test for the grpc-router crate; need to be in a separate create because of linter limitations"
[dependencies]

View File

@ -2,7 +2,7 @@
name = "influxdb2_client"
version = "0.1.0"
authors = ["Paul Dix <paul@pauldix.net>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order
bytes = "1.0"

View File

@ -2,7 +2,7 @@
name = "influxdb_iox_client"
version = "0.1.0"
authors = ["Dom Dwyer <dom@itsallbroken.com>"]
edition = "2018"
edition = "2021"
[features]
flight = ["arrow", "arrow-flight", "arrow_util", "serde/derive", "serde_json", "futures-util"]

View File

@ -2,7 +2,7 @@
name = "influxdb_line_protocol"
version = "0.1.0"
authors = ["Paul Dix <paul@pauldix.net>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order
nom = "7"

View File

@ -2,7 +2,7 @@
name = "influxdb_storage_client"
version = "0.1.0"
authors = ["Raphael Taylor-Davies <r.taylordavies@googlemail.com>"]
edition = "2018"
edition = "2021"
[dependencies]
client_util = { path = "../client_util" }

View File

@ -2,7 +2,7 @@
name = "influxdb_tsm"
version = "0.1.0"
authors = ["Edd Robinson <me@edd.io>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order
integer-encoding = "3.0.2"

View File

@ -2,7 +2,7 @@
name = "internal_types"
version = "0.1.0"
authors = ["Andrew Lamb <andrew@nerdnetworks.org>"]
edition = "2018"
edition = "2021"
description = "InfluxDB IOx internal types, shared between IOx instances"
readme = "README.md"

View File

@ -2,7 +2,7 @@
name = "iox_data_generator"
version = "0.1.0"
authors = ["Paul Dix <paul@pauldix.net>"]
edition = "2018"
edition = "2021"
default-run = "iox_data_generator"
[dependencies]

View File

@ -1,7 +1,7 @@
[package]
name = "iox_object_store"
version = "0.1.0"
edition = "2018"
edition = "2021"
description = "IOx-specific semantics wrapping the general-purpose object store crate"
[dependencies]

View File

@ -2,7 +2,7 @@
name = "lifecycle"
version = "0.1.0"
authors = ["Raphael Taylor-Davies <r.taylordavies@googlemail.com>"]
edition = "2018"
edition = "2021"
description = "Implements the IOx data lifecycle"
[dependencies]

View File

@ -3,7 +3,7 @@ name = "logfmt"
version = "0.1.0"
authors = ["Andrew Lamb <andrew@nerdnetworks.org>"]
description = "tracing_subscriber layer for writing out logfmt formatted events"
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order
observability_deps = { path = "../observability_deps" }

View File

@ -2,7 +2,7 @@
name = "metric"
version = "0.1.0"
authors = ["Raphael Taylor-Davies <r.taylordavies@googlemail.com>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order

View File

@ -2,7 +2,7 @@
name = "metric_exporters"
version = "0.1.0"
authors = ["Raphael Taylor-Davies <r.taylordavies@googlemail.com>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order

View File

@ -1,7 +1,7 @@
[package]
name = "mutable_batch"
version = "0.1.0"
edition = "2018"
edition = "2021"
description = "A mutable arrow RecordBatch"
[dependencies]

View File

@ -1,7 +1,7 @@
[package]
name = "mutable_batch_lp"
version = "0.1.0"
edition = "2018"
edition = "2021"
description = "Conversion logic for line protocol -> MutableBatch"
[dependencies]

View File

@ -1,7 +1,7 @@
[package]
name = "mutable_batch_pb"
version = "0.1.0"
edition = "2018"
edition = "2021"
description = "Conversion logic for binary write protocol <-> MutableBatch"
[dependencies]

View File

@ -2,7 +2,7 @@
name = "mutable_buffer"
version = "0.1.0"
authors = ["Andrew Lamb <andrew@nerdnetworks.org>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order
arrow = { version = "6.0", features = ["prettyprint"] }

View File

@ -2,7 +2,7 @@
name = "object_store"
version = "0.1.0"
authors = ["Paul Dix <paul@pauldix.net>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order
async-trait = "0.1.42"

View File

@ -2,7 +2,7 @@
name = "observability_deps"
version = "0.1.0"
authors = ["Paul Dix <paul@pauldix.net>"]
edition = "2018"
edition = "2021"
description = "Observability ecosystem dependencies for InfluxDB IOx, to ensure consistent versions and unified updates"
[dependencies] # In alphabetical order

View File

@ -2,7 +2,7 @@
name = "packers"
version = "0.1.0"
authors = ["Andrew Lamb <andrew@nerdnetworks.org>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order
arrow = { version = "6.0", features = ["prettyprint"] }

View File

@ -2,7 +2,7 @@
name = "panic_logging"
version = "0.1.0"
authors = ["Paul Dix <paul@pauldix.net>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order
observability_deps = { path = "../observability_deps" }

View File

@ -1,7 +1,7 @@
[package]
name = "parquet_catalog"
version = "0.1.0"
edition = "2018"
edition = "2021"
[dependencies]
arrow = { version = "6.0", features = ["prettyprint"] }

View File

@ -2,7 +2,7 @@
name = "parquet_file"
version = "0.1.0"
authors = ["Nga Tran <nga-tran@live.com>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order
arrow = { version = "6.0", features = ["prettyprint"] }

View File

@ -1,7 +1,7 @@
[package]
name = "persistence_windows"
version = "0.1.0"
edition = "2018"
edition = "2021"
[dependencies]
data_types = { path = "../data_types" }

View File

@ -1,7 +1,7 @@
[package]
name = "predicate"
version = "0.1.0"
edition = "2018"
edition = "2021"
[dependencies]
arrow = { version = "6.0", features = ["prettyprint"] }

View File

@ -2,7 +2,7 @@
name = "query"
version = "0.1.0"
authors = ["Andrew Lamb <andrew@nerdnetworks.org>"]
edition = "2018"
edition = "2021"
description = "IOx Query Interface and Executor"
# This crate is designed to be independent of the rest of the IOx

View File

@ -2,7 +2,7 @@
name = "query_tests"
version = "0.1.0"
authors = ["Andrew Lamb <andrew@nerdnetworks.org>"]
edition = "2018"
edition = "2021"
description = "Tests of the query engine against different database configurations"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -3,7 +3,7 @@ name = "generate"
description = "Creates rust #tests for files in .sql"
version = "0.1.0"
authors = ["Andrew Lamb <andrew@nerdnetworks.org>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order

View File

@ -2,7 +2,7 @@
name = "read_buffer"
version = "0.1.0"
authors = ["Edd Robinson <me@edd.io>"]
edition = "2018"
edition = "2021"
# Note this crate is designed to be standalone, and should not depend
# on the IOx Query Engine. The rationale is:

View File

@ -1,4 +1,4 @@
edition = "2018"
edition = "2021"
# Unstable features not yet supported on stable Rust
#wrap_comments = true

View File

@ -2,7 +2,7 @@
name = "schema"
version = "0.1.0"
authors = ["Andrew Lamb <andrew@nerdnetworks.org>"]
edition = "2018"
edition = "2021"
description = "IOx Schema definition"
[dependencies]

View File

@ -2,7 +2,7 @@
name = "server"
version = "0.1.0"
authors = ["pauldix <paul@pauldix.net>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order
arrow = { version = "6.0", features = ["prettyprint"] }

View File

@ -876,6 +876,9 @@ where
// immediately to the client and abort all other outstanding requests.
futures_util::future::try_join_all(sharded_entries.into_iter().map(
|sharded_entry| async {
// capture entire entry in closure
let sharded_entry = sharded_entry;
let sink = match &rules.routing_rules {
Some(RoutingRules::ShardConfig(shard_config)) => {
let id = sharded_entry.shard_id.expect("sharded entry");

View File

@ -2,7 +2,7 @@
name = "server_benchmarks"
version = "0.1.0"
authors = ["Andrew Lamb <andrew@nerdnetworks.org>"]
edition = "2018"
edition = "2021"
description = "Server related bechmarks, grouped into their own crate to minimize build dev build times"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "test_helpers"
version = "0.1.0"
authors = ["Paul Dix <paul@pauldix.net>"]
edition = "2018"
edition = "2021"
[dependencies] # In alphabetical order
dotenv = "0.15.0"

View File

@ -1,7 +1,7 @@
[package]
name = "time"
version = "0.1.0"
edition = "2018"
edition = "2021"
description = "Time functionality for IOx"
[dependencies]

View File

@ -2,7 +2,7 @@
name = "trace"
version = "0.1.0"
authors = ["Raphael Taylor-Davies <r.taylordavies@googlemail.com>"]
edition = "2018"
edition = "2021"
description = "Distributed tracing support within IOx"
[dependencies]

View File

@ -2,7 +2,7 @@
name = "trace_exporters"
version = "0.1.0"
authors = ["Raphael Taylor-Davies <r.taylordavies@googlemail.com>"]
edition = "2018"
edition = "2021"
description = "Additional tracing exporters for IOx"
[dependencies]

View File

@ -2,7 +2,7 @@
name = "trace_http"
version = "0.1.0"
authors = ["Raphael Taylor-Davies <r.taylordavies@googlemail.com>"]
edition = "2018"
edition = "2021"
description = "Distributed tracing support for HTTP services"
[dependencies]

View File

@ -2,7 +2,7 @@
name = "tracker"
version = "0.1.0"
authors = ["Raphael Taylor-Davies <r.taylordavies@googlemail.com>"]
edition = "2018"
edition = "2021"
description = "Utilities for tracking resource utilisation within IOx"
[dependencies]

View File

@ -2,7 +2,7 @@
name = "trogging"
version = "0.1.0"
authors = ["Marko Mikulicic <mkm@influxdata.com>"]
edition = "2018"
edition = "2021"
description = "IOx logging pipeline built upon tokio-tracing"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,7 +1,7 @@
[package]
name = "write_buffer"
version = "0.1.0"
edition = "2018"
edition = "2021"
[dependencies]
async-trait = "0.1"