diff options
author | Allen George <allen.george@gmail.com> | 2020-03-29 11:48:55 -0400 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2020-09-02 09:03:40 +0200 |
commit | b0d14133d5071370905a1b54b37a1a7c86d50e6d (patch) | |
tree | 517583f4bb61da82195f237c3663cac3f259e1bc /tutorial | |
parent | 935770c6b077fd96430684049078bdb9bdff50c5 (diff) | |
download | thrift-b0d14133d5071370905a1b54b37a1a7c86d50e6d.tar.gz |
THRIFT-5158 Update Rust generator and Rust lib,test,tutorial to only support 2018 edition
Client: rs
Patch: Allen George
This closes #2078
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/rs/Cargo.toml | 1 | ||||
-rw-r--r-- | tutorial/rs/src/bin/tutorial_client.rs | 3 | ||||
-rw-r--r-- | tutorial/rs/src/bin/tutorial_server.rs | 3 | ||||
-rw-r--r-- | tutorial/rs/src/lib.rs | 4 |
4 files changed, 1 insertions, 10 deletions
diff --git a/tutorial/rs/Cargo.toml b/tutorial/rs/Cargo.toml index 60f02d73c..d8e2a9a8d 100644 --- a/tutorial/rs/Cargo.toml +++ b/tutorial/rs/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "thrift-tutorial" version = "0.1.0" +edition = "2018" license = "Apache-2.0" authors = ["Apache Thrift Developers <dev@thrift.apache.org>"] exclude = ["Makefile*", "shared.rs", "tutorial.rs"] diff --git a/tutorial/rs/src/bin/tutorial_client.rs b/tutorial/rs/src/bin/tutorial_client.rs index bfd81d4c3..90a26d811 100644 --- a/tutorial/rs/src/bin/tutorial_client.rs +++ b/tutorial/rs/src/bin/tutorial_client.rs @@ -18,9 +18,6 @@ #[macro_use] extern crate clap; -extern crate thrift; -extern crate thrift_tutorial; - use thrift::protocol::{TCompactInputProtocol, TCompactOutputProtocol}; use thrift::transport::{ ReadHalf, TFramedReadTransport, TFramedWriteTransport, TIoChannel, TTcpChannel, WriteHalf, diff --git a/tutorial/rs/src/bin/tutorial_server.rs b/tutorial/rs/src/bin/tutorial_server.rs index 95b1a2b6e..e4d1d2ecb 100644 --- a/tutorial/rs/src/bin/tutorial_server.rs +++ b/tutorial/rs/src/bin/tutorial_server.rs @@ -18,9 +18,6 @@ #[macro_use] extern crate clap; -extern crate thrift; -extern crate thrift_tutorial; - use std::collections::HashMap; use std::convert::{From, Into}; use std::default::Default; diff --git a/tutorial/rs/src/lib.rs b/tutorial/rs/src/lib.rs index 40007e5d3..ac509cc92 100644 --- a/tutorial/rs/src/lib.rs +++ b/tutorial/rs/src/lib.rs @@ -15,9 +15,5 @@ // specific language governing permissions and limitations // under the License. -extern crate ordered_float; -extern crate thrift; -extern crate try_from; - pub mod shared; pub mod tutorial; |