Skip to content

Commit 95b19e4

Browse files
chore: updates workspace to rust edition 2021 (#886)
1 parent 35eb3c0 commit 95b19e4

File tree

11 files changed

+23
-19
lines changed

11 files changed

+23
-19
lines changed

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ description = """
55
Rover is a tool for working with the Apollo GraphQL Registry.
66
"""
77
documentation = "https://go.apollo.dev/r/docs"
8-
edition = "2018"
8+
edition = "2021"
99
keywords = ["graphql", "cli", "apollo", "graph", "registry"]
1010
license = "MIT"
1111
name = "rover"
1212
readme = "README.md"
1313
repository = "https://github.com/apollographql/rover/"
1414
version = "0.3.0"
15-
resolver = "2"
1615

1716
[[bin]]
1817
name = "rover"

crates/houston/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "houston"
33
version = "0.0.0"
44
authors = ["Apollo Developers <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies]
88
camino = "1"

crates/robot-panic/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "robot-panic"
33
version = "1.0.3"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies]
77
backtrace = "0.3"

crates/robot-panic/src/report.rs

+4-7
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,10 @@ impl Report {
171171
"body",
172172
&format!(
173173
"<!--\n Please add some additional information about what you were trying to \
174-
do before submitting this report\n --> \n\n\
175-
176-
## Description\n\
177-
178-
Describe the issue that you're seeing.\n\n\
179-
180-
**Crash Report**\n \
174+
do before submitting this report\n --> \n\n\n
175+
## Description\n\n
176+
Describe the issue that you're seeing.\n\n\n
177+
**Crash Report**\n\n
181178
```toml\n{}\n```\n",
182179
&crash_report
183180
),

crates/rover-client/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["Apollo Developers <[email protected]>"]
33
description = "an http client for making graphql requests for the rover CLI"
4-
edition = "2018"
4+
edition = "2021"
55
name = "rover-client"
66
version = "0.0.0"
77

crates/sdl-encoder/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
authors = ["lrlna <[email protected]>"]
3-
edition = "2018"
3+
edition = "2021"
44
name = "sdl-encoder"
55
version = "0.1.0"
66

crates/sputnik/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "sputnik"
33
version = "0.0.0"
44
authors = ["Apollo Developers <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies]
88
camino = "1"

crates/timber/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "timber"
33
version = "0.1.0"
44
authors = ["Apollo Developers <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies]
88
serde = "1"

installers/binstall/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "binstall"
33
version = "0.1.0"
44
authors = ["Apollo Developers <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies]
88
atty = "0.2"

xtask/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "xtask"
33
version = "0.1.0"
44
authors = ["Apollo Developers <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies]
88
ansi_term = "0.12"

xtask/src/commands/test.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ pub struct Test {
99
// The target to build Rover for
1010
#[structopt(long = "target", env = "XTASK_TARGET", default_value, possible_values = &POSSIBLE_TARGETS)]
1111
target: Target,
12+
13+
// The supergraph-demo branch to check out
14+
#[structopt(long = "branch", default_value = "main")]
15+
pub(crate) branch: String,
16+
17+
// The supergraph-demo org to clone
18+
#[structopt(long = "org", default_value = "apollographql")]
19+
pub(crate) org: String,
1220
}
1321

1422
impl Test {
@@ -19,8 +27,8 @@ impl Test {
1927
unit_test_runner.run(verbose)?;
2028
let integration_test_runner = IntegrationTest {
2129
target: self.target.clone(),
22-
branch: Default::default(),
23-
org: Default::default(),
30+
branch: self.branch.clone(),
31+
org: self.org.clone(),
2432
};
2533
integration_test_runner.run(verbose)?;
2634
Ok(())

0 commit comments

Comments
 (0)