Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #115 from holochain/2019-12-01-nightly-rust
Browse files Browse the repository at this point in the history
bump rust to nightly 2019-11-25
  • Loading branch information
thedavidmeister committed Dec 2, 2019
2 parents 9e29df4 + dea260e commit 21cfed8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG-UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

### Changed

- bump rust to nightly-2019-11-25

### Deprecated

### Removed

### Fixed

### Security

2 changes: 1 addition & 1 deletion nix-shell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# rust version through this environment variable.
# https://github.com/rust-lang/rustup.rs#environment-variables
# https://github.com/NixOS/nix/issues/903
RUSTUP_TOOLCHAIN = rust.nightly.version;
RUSTUP_TOOLCHAIN = rust.channel.version;
RUSTFLAGS = rust.compile.flags;
CARGO_INCREMENTAL = rust.compile.incremental;
RUST_LOG = rust.log;
Expand Down
9 changes: 5 additions & 4 deletions rust/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ let
# https://rust-lang.github.io/rustup-components-history/
# read more about version management
# https://hackmd.io/ShgxFyDVR52gnqK7oQsuiQ
nightly = {
date = "2019-07-14";
channel = {
name = "nightly";
date = "2019-11-15";
};

# the target used by rust when compiling wasm
Expand Down Expand Up @@ -71,8 +72,8 @@ let

derived = {

nightly = base.nightly // {
version = "nightly-${base.nightly.date}";
channel = base.channel // {
version = "${base.channel.name}-${base.channel.date}";
};

compile = base.compile // {
Expand Down
2 changes: 1 addition & 1 deletion rust/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rust //
buildInputs = []
# https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md
++ [
(pkgs.rustChannelOfTargets "nightly" rust.nightly.date [ rust.wasm-target rust.generic-linux-target ])
(pkgs.rustChannelOfTargets rust.channel.name rust.channel.date [ rust.wasm-target rust.generic-linux-target ])
pkgs.binutils
pkgs.gcc
pkgs.gnumake
Expand Down

0 comments on commit 21cfed8

Please sign in to comment.