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

chore: updates workspace to rust edition 2021 #886

Merged
merged 1 commit into from
Oct 21, 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: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ description = """
Rover is a tool for working with the Apollo GraphQL Registry.
"""
documentation = "https://go.apollo.dev/r/docs"
edition = "2018"
edition = "2021"
keywords = ["graphql", "cli", "apollo", "graph", "registry"]
license = "MIT"
name = "rover"
readme = "README.md"
repository = "https://github.com/apollographql/rover/"
version = "0.3.0"
resolver = "2"

[[bin]]
name = "rover"
Expand Down
2 changes: 1 addition & 1 deletion crates/houston/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "houston"
version = "0.0.0"
authors = ["Apollo Developers <[email protected]>"]
edition = "2018"
edition = "2021"

[dependencies]
camino = "1"
Expand Down
2 changes: 1 addition & 1 deletion crates/robot-panic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "robot-panic"
version = "1.0.3"
edition = "2018"
edition = "2021"

[dependencies]
backtrace = "0.3"
Expand Down
11 changes: 4 additions & 7 deletions crates/robot-panic/src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,10 @@ impl Report {
"body",
&format!(
"<!--\n Please add some additional information about what you were trying to \
do before submitting this report\n --> \n\n\

## Description\n\

Describe the issue that you're seeing.\n\n\

**Crash Report**\n \
do before submitting this report\n --> \n\n\n
## Description\n\n
Describe the issue that you're seeing.\n\n\n
**Crash Report**\n\n
```toml\n{}\n```\n",
&crash_report
),
Expand Down
2 changes: 1 addition & 1 deletion crates/rover-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Apollo Developers <[email protected]>"]
description = "an http client for making graphql requests for the rover CLI"
edition = "2018"
edition = "2021"
name = "rover-client"
version = "0.0.0"

Expand Down
2 changes: 1 addition & 1 deletion crates/sdl-encoder/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
authors = ["lrlna <[email protected]>"]
edition = "2018"
edition = "2021"
name = "sdl-encoder"
version = "0.1.0"

Expand Down
2 changes: 1 addition & 1 deletion crates/sputnik/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "sputnik"
version = "0.0.0"
authors = ["Apollo Developers <[email protected]>"]
edition = "2018"
edition = "2021"

[dependencies]
camino = "1"
Expand Down
2 changes: 1 addition & 1 deletion crates/timber/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "timber"
version = "0.1.0"
authors = ["Apollo Developers <[email protected]>"]
edition = "2018"
edition = "2021"

[dependencies]
serde = "1"
Expand Down
2 changes: 1 addition & 1 deletion installers/binstall/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "binstall"
version = "0.1.0"
authors = ["Apollo Developers <[email protected]>"]
edition = "2018"
edition = "2021"

[dependencies]
atty = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "xtask"
version = "0.1.0"
authors = ["Apollo Developers <[email protected]>"]
edition = "2018"
edition = "2021"

[dependencies]
ansi_term = "0.12"
Expand Down
12 changes: 10 additions & 2 deletions xtask/src/commands/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ pub struct Test {
// The target to build Rover for
#[structopt(long = "target", env = "XTASK_TARGET", default_value, possible_values = &POSSIBLE_TARGETS)]
target: Target,

// The supergraph-demo branch to check out
#[structopt(long = "branch", default_value = "main")]
pub(crate) branch: String,

// The supergraph-demo org to clone
#[structopt(long = "org", default_value = "apollographql")]
pub(crate) org: String,
}

impl Test {
Expand All @@ -19,8 +27,8 @@ impl Test {
unit_test_runner.run(verbose)?;
let integration_test_runner = IntegrationTest {
target: self.target.clone(),
branch: Default::default(),
org: Default::default(),
branch: self.branch.clone(),
org: self.org.clone(),
};
integration_test_runner.run(verbose)?;
Ok(())
Expand Down