THRIFT 4536: Rust 1.34.0
Update dockerfiles to use rust stable, call out required rust version in
breaking changes.
diff --git a/build/docker/ubuntu-bionic/Dockerfile b/build/docker/ubuntu-bionic/Dockerfile
index aae9747..c8131bb 100644
--- a/build/docker/ubuntu-bionic/Dockerfile
+++ b/build/docker/ubuntu-bionic/Dockerfile
@@ -256,10 +256,8 @@
ruby-dev \
ruby-bundler
-RUN apt-get install -y --no-install-recommends \
-`# Rust dependencies` \
- cargo \
- rustc
+# Rust dependencies
+RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
# Swift on Linux for cross tests
RUN cd / && \
diff --git a/build/docker/ubuntu-xenial/Dockerfile b/build/docker/ubuntu-xenial/Dockerfile
index e6069f8..97aaaea 100644
--- a/build/docker/ubuntu-xenial/Dockerfile
+++ b/build/docker/ubuntu-xenial/Dockerfile
@@ -254,10 +254,8 @@
ruby-dev \
ruby-bundler
-RUN apt-get install -y --no-install-recommends \
-`# Rust dependencies` \
- cargo \
- rustc
+# Rust dependencies
+RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
# Clean up
RUN rm -rf /var/cache/apt/* && \