Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[internal] upgrade to Rust 2021 Edition #13644

Merged
merged 2 commits into from
Nov 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build-support/bin/check_rust_target_headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

REPO_ROOT="$(git rev-parse --show-toplevel)"

"${REPO_ROOT}/cargo" install cargo-ensure-prefix --version "=0.1.3"
"${REPO_ROOT}/cargo" install cargo-ensure-prefix \
--git=https://github.com/pantsbuild/cargo-ensure-prefix --branch=upgrade_deps_for_rust_2021_support

if ! out="$("${REPO_ROOT}/cargo" ensure-prefix \
--manifest-path="${REPO_ROOT}/src/rust/engine/Cargo.toml" \
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "engine"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/async_latch/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "async_latch"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/async_semaphore/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "async_semaphore"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/async_value/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "async_value"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/cache/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "cache"
version = "0.0.1"
edition = "2018"
edition = "2021"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false

Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "client"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/concrete_time/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
authors = ["Pants Build <pantsbuild@gmail.com>"]
name = "concrete_time"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/fs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "fs"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/fs/brfs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "brfs"
version = "0.0.1"
edition = "2018"
edition = "2021"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false

Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/fs/fs_util/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "fs_util"
version = "0.0.1"
edition = "2018"
edition = "2021"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false

Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/fs/store/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "store"
version = "0.1.0"
authors = ["Daniel Wagner-Hall <dwagnerhall@twitter.com>"]
edition = "2018"
edition = "2021"

[dependencies]
async-stream = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/graph/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "graph"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/grpc_util/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "grpc_util"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/hashing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "hashing"
version = "0.0.1"
edition = "2018"
edition = "2021"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false

Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/logging/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "logging"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/nailgun/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "nailgun"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/options/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "options"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/process_execution/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "process_execution"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/process_executor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "process_executor"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/protos/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "protos"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/rule_graph/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "rule_graph"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/sharded_lmdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "sharded_lmdb"
version = "0.0.1"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
edition = "2018"
edition = "2021"

[dependencies]
bytes = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/stdio/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "stdio"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/task_executor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "task_executor"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/testutil/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "testutil"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/testutil/local_cas/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "local_cas"
version = "0.0.1"
edition = "2018"
edition = "2021"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false

Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/testutil/local_execution_server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "local_execution_server"
version = "0.1.0"
edition = "2018"
edition = "2021"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false

Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/testutil/mock/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "mock"
version = "0.0.1"
edition = "2018"
edition = "2021"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false

Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/tryfuture/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "tryfuture"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/ui/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "ui"
version = "0.0.1"
edition = "2018"
edition = "2021"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]

[lib]
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/watch/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "watch"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down
2 changes: 1 addition & 1 deletion src/rust/engine/workunit_store/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.1"
edition = "2018"
edition = "2021"
name = "workunit_store"
authors = [ "Pants Build <pantsbuild@gmail.com>" ]
publish = false
Expand Down