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: revert to 2018 edition #847

Merged
merged 1 commit into from Dec 7, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -41,7 +41,7 @@ the generated code.

### Rust Version

`tonic` currently works on Rust `1.56` and above as it requires support for the 2021 edition.
`tonic` currently works on Rust `1.56` and above as it requires support for the 2018 edition.

```bash
$ rustup update
Expand Down
2 changes: 1 addition & 1 deletion examples/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Lucio Franco <luciofranco14@gmail.com>"]
edition = "2021"
edition = "2018"
license = "MIT"
name = "examples"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion interop/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Lucio Franco <luciofranco14@gmail.com>"]
edition = "2021"
edition = "2018"
license = "MIT"
name = "interop"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion rustfmt.toml
@@ -1 +1 @@
edition = "2021"
edition = "2018"
2 changes: 1 addition & 1 deletion tests/ambiguous_methods/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Yonathan Randolph <yonathan@gmail.com>"]
edition = "2021"
edition = "2018"
license = "MIT"
name = "ambiguous_methods"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion tests/compression/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Lucio Franco <luciofranco14@gmail.com>"]
edition = "2021"
edition = "2018"
license = "MIT"
name = "compression"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion tests/extern_path/my_application/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Danny Hua <danny@42layers.io>"]
edition = "2021"
edition = "2018"
license = "MIT"
name = "my_application"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion tests/extern_path/uuid/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Danny Hua <danny@42layers.io>"]
edition = "2021"
edition = "2018"
license = "MIT"
name = "uuid1"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion tests/included_service/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Lucio Franco <luciofranco14@gmail.com>"]
edition = "2021"
edition = "2018"
license = "MIT"
name = "included_service"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Lucio Franco <luciofranco14@gmail.com>"]
edition = "2021"
edition = "2018"
license = "MIT"
name = "integration-tests"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion tests/root-crate-path/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Lucio Franco <luciofranco14@gmail.com>"]
edition = "2021"
edition = "2018"
license = "MIT"
name = "root-crate-path"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion tests/same_name/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Lucio Franco <luciofranco14@gmail.com>"]
edition = "2021"
edition = "2018"
license = "MIT"
name = "same_name"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion tests/service_named_service/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Lucio Franco <luciofranco14@gmail.com>"]
edition = "2021"
edition = "2018"
license = "MIT"
name = "service_named_service"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion tests/stream_conflict/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Ben Sully <ben@bsull.io>"]
edition = "2021"
edition = "2018"
name = "stream_conflict"
publish = false
version = "0.1.0"
Expand Down
2 changes: 1 addition & 1 deletion tests/wellknown-compiled/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Lucio Franco <luciofranco14@gmail.com>"]
edition = "2021"
edition = "2018"
license = "MIT"
name = "wellknown-compiled"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion tests/wellknown/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Lucio Franco <luciofranco14@gmail.com>"]
edition = "2021"
edition = "2018"
license = "MIT"
name = "wellknown"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion tonic-build/Cargo.toml
Expand Up @@ -5,7 +5,7 @@ description = """
Codegen module of `tonic` gRPC implementation.
"""
documentation = "https://docs.rs/tonic-build/0.6.0/tonic_build/"
edition = "2021"
edition = "2018"
homepage = "https://github.com/hyperium/tonic"
keywords = ["rpc", "grpc", "async", "codegen", "protobuf"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tonic-health/Cargo.toml
Expand Up @@ -5,7 +5,7 @@ description = """
Health Checking module of `tonic` gRPC implementation.
"""
documentation = "https://docs.rs/tonic-health/0.4.0/tonic-health/"
edition = "2021"
edition = "2018"
homepage = "https://github.com/hyperium/tonic"
keywords = ["rpc", "grpc", "async", "healthcheck"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tonic-reflection/Cargo.toml
Expand Up @@ -7,7 +7,7 @@ categories = ["network-programming", "asynchronous"]
description = """
Server Reflection module of `tonic` gRPC implementation.
"""
edition = "2021"
edition = "2018"
homepage = "https://github.com/hyperium/tonic"
keywords = ["rpc", "grpc", "async", "reflection"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tonic-types/Cargo.toml
Expand Up @@ -5,7 +5,7 @@ description = """
A collection of useful protobuf types that can be used with `tonic`.
"""
documentation = "https://docs.rs/tonic-types/0.4.0/tonic-types/"
edition = "2021"
edition = "2018"
homepage = "https://github.com/hyperium/tonic"
keywords = ["rpc", "grpc", "protobuf"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tonic-web/Cargo.toml
Expand Up @@ -5,7 +5,7 @@ description = """
grpc-web protocol translation for tonic services.
"""
documentation = "https://docs.rs/tonic-web/0.2.0/tonic-web/"
edition = "2021"
edition = "2018"
homepage = "https://github.com/hyperium/tonic"
keywords = ["rpc", "grpc", "grpc-web"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tonic-web/tests/integration/Cargo.toml
@@ -1,6 +1,6 @@
[package]
authors = ["Juan Alvarez <j@yabit.io>"]
edition = "2021"
edition = "2018"
name = "integration"
publish = false
version = "0.1.0"
Expand Down
2 changes: 1 addition & 1 deletion tonic/Cargo.toml
Expand Up @@ -14,7 +14,7 @@ description = """
A gRPC over HTTP/2 implementation focused on high performance, interoperability, and flexibility.
"""
documentation = "https://docs.rs/tonic/0.6.1/tonic/"
edition = "2021"
edition = "2018"
homepage = "https://github.com/hyperium/tonic"
keywords = ["rpc", "grpc", "async", "futures", "protobuf"]
license = "MIT"
Expand Down