Skip to content

Commit 4e8e978

Browse files
authored
Merge pull request softprops#76 from softprops/upgrade-rust-and-changelog
Upgrade rust and changelog
2 parents 12e3e4e + 311b2fd commit 4e8e978

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# 0.4.0-rust-1.45.2
2+
3+
* **Breaking change** in avoid mixed user permissions when volume mounting cargo cache directories. This docker images now configures a cargo installation to `/cargo` directory rather than `/home/root/.cargo`. You'll also want to ensure
4+
docker runs use a docker user that maps to your host machine's user id and group.
5+
6+
```diff
7+
$ docker run --rm \
8+
+ -u $(id -u):$(id -g) \
9+
-v ${PWD}:/code \
10+
+ -v ${HOME}/.cargo/registry:/cargo/registry \
11+
+ -v ${HOME}/.cargo/git:/cargo/git \
12+
softprops/lambda-rust
13+
```
14+
15+
* Upgrade to Rust [`1.45.2`](https://blog.rust-lang.org/2020/08/03/Rust-1.45.2.html)
16+
117
# 0.3.0-rust-1.45.0
218

319
* Upgrade to Rust [`1.45.0`](https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html)

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://github.com/lambci/docker-lambda#documentation
22
FROM lambci/lambda:build-provided
3-
ARG RUST_VERSION=stable
3+
ARG RUST_VERSION=1.45.2
44
RUN yum install -y jq
55
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
66
| CARGO_HOME=/cargo RUSTUP_HOME=/rustup sh -s -- -y --profile minimal --default-toolchain $RUST_VERSION

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
VERSION ?= 0.3.0
2-
RUST_VERSION ?= 1.45.0
2+
RUST_VERSION ?= 1.45.2
33
REPO ?= softprops/lambda-rust
44
TAG ?= "$(REPO):$(VERSION)-rust-$(RUST_VERSION)"
55

0 commit comments

Comments
 (0)