# Rust

**URL:** https://travis-ci.community/c/languages/rust/52.md

[Latest](https://travis-ci.community/latest.md) · [Categories](https://travis-ci.community/categories.md) · [Tags](https://travis-ci.community/tags.md)

---

## [About the Rust category](https://travis-ci.community/t/about-the-rust-category/749)

<div class="topic-metadata">

**Author:** [@kris](https://travis-ci.community/u/kris)\
**Replies:** 0

</div>

Any discussions about Rust goes here!

---

## [For \`dist: focal\`, Xenial VM is used instead with \`language: rust\`](https://travis-ci.community/t/for-dist-focal-xenial-vm-is-used-instead-with-language-rust/10216)

<div class="topic-metadata">

**Author:** [@klausi](https://travis-ci.community/u/klausi)\
**Replies:** 1\
**Last updated:** [October 21, 2020, 2:20pm UTC](https://travis-ci.community/t/for-dist-focal-xenial-vm-is-used-instead-with-language-rust/10216 "2020-10-21T14:20:42Z")

</div>

While dist: bionic now works for Rust testing the same problem occurs with dist: focal now. Example: https://travis-ci.org/github/klausi/mastodon-twitter-sync/jobs/736883364 The problem is even worse now: instead of bui…

---

## [How to set up automatic build of a dynamic library in Rust?](https://travis-ci.community/t/how-to-set-up-automatic-build-of-a-dynamic-library-in-rust/8463)

<div class="topic-metadata">

**Author:** [@kangalioo](https://travis-ci.community/u/kangalioo)\
**Replies:** 0\
**Last updated:** [May 4, 2020, 12:29pm UTC](https://travis-ci.community/t/how-to-set-up-automatic-build-of-a-dynamic-library-in-rust/8463 "2020-05-04T12:29:13Z")

</div>

Hi, total Travis CI noob here. I’m clueless as to how to correctly set up a .travis.yml for this Rust crate on Windows. The relevant crate outputs a dynamic library which needs to be moved into the src/ directory in the…

---

## [Trouble combining rust versions with os in matrix](https://travis-ci.community/t/trouble-combining-rust-versions-with-os-in-matrix/5989)

<div class="topic-metadata">

**Author:** [@najamelan](https://travis-ci.community/u/najamelan)\
**Replies:** 0\
**Last updated:** [November 16, 2019, 12:24pm UTC](https://travis-ci.community/t/trouble-combining-rust-versions-with-os-in-matrix/5989 "2019-11-16T12:24:44Z")

</div>

I am trying to run tests on linux, win and mac. I would like that to test both stable and nightly on each of those. The trouble starts when I take this configuration and modify the rust: nightly entry at the top to inclu…

---

## [Stable Rust channel outdated](https://travis-ci.community/t/stable-rust-channel-outdated/4213)

<div class="topic-metadata">

**Author:** [@tmfink](https://travis-ci.community/u/tmfink)\
**Replies:** 4\
**Last updated:** [September 27, 2019, 12:00pm UTC](https://travis-ci.community/t/stable-rust-channel-outdated/4213 "2019-09-27T12:00:57Z")

</div>

As of now, using the “stable” channel on Rust uses 1.35.0, instead of 1.36.0, which was released on 2019-07-04. Log showing older, 1.35.0 release was used: https://travis-ci.org/capstone-rust/capstone-rs/jobs/558598179…

---

## [CI using one month old version of rust nightly](https://travis-ci.community/t/ci-using-one-month-old-version-of-rust-nightly/4502)

<div class="topic-metadata">

**Author:** [@95th](https://travis-ci.community/u/95th)\
**Replies:** 9\
**Last updated:** [August 11, 2019, 10:08am UTC](https://travis-ci.community/t/ci-using-one-month-old-version-of-rust-nightly/4502 "2019-08-11T10:08:34Z")

</div>

I want to use latest Rust Nightly to build my project. Here is the config file: But, it seems to be using one month old nightly: rustc 1.37.0-nightly (5f9c0448d 2019-06-25) https://travis-ci.org/hyperium/h2/builds…

---

## [Rust-toolchain file overrides rust version set in matrix](https://travis-ci.community/t/rust-toolchain-file-overrides-rust-version-set-in-matrix/4326)

<div class="topic-metadata">

**Author:** [@MOZGIII](https://travis-ci.community/u/MOZGIII)\
**Replies:** 0\
**Last updated:** [July 22, 2019, 11:23pm UTC](https://travis-ci.community/t/rust-toolchain-file-overrides-rust-version-set-in-matrix/4326 "2019-07-22T23:23:27Z")

</div>

When a repo contains a rust-toolchain file, Travis’ build matrix does not install the requested rust version, and always uses the version defined in the rust-toolchain file instead. Is there a hook I could use (before\_i…

---

## [My rust releases builds are not pushed to GitHub releases](https://travis-ci.community/t/my-rust-releases-builds-are-not-pushed-to-github-releases/4278)

<div class="topic-metadata">

**Author:** [@Riduidel](https://travis-ci.community/u/Riduidel)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 9:14pm UTC](https://travis-ci.community/t/my-rust-releases-builds-are-not-pushed-to-github-releases/4278 "2019-07-19T21:14:36Z")

</div>

On https://travis-ci.org/Riduidel/rrss2imap I’m trying to have Travis generate mult-platform releases. My .travis.yml file is there https://github.com/Riduidel/rrss2imap/blob/master/.travis.yml To perform a release, as…

---

## [Sccache on macOS](https://travis-ci.community/t/sccache-on-macos/4157)

<div class="topic-metadata">

**Author:** [@divergentdave](https://travis-ci.community/u/divergentdave)\
**Replies:** 2\
**Last updated:** [July 10, 2019, 7:55pm UTC](https://travis-ci.community/t/sccache-on-macos/4157 "2019-07-10T19:55:54Z")

</div>

I found that the default caching directories, at https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/script/rust.rb, only work with sccache on Linux, but not macOS. Could someone add the directory $HOM…

---

## [Teach Travis about Cargo features](https://travis-ci.community/t/teach-travis-about-cargo-features/2324)

<div class="topic-metadata">

**Author:** [@nox](https://travis-ci.community/u/nox)\
**Replies:** 0\
**Last updated:** [February 17, 2019, 10:26am UTC](https://travis-ci.community/t/teach-travis-about-cargo-features/2324 "2019-02-17T10:26:02Z")

</div>

There is no way to specify Cargo features without explicitly redefining script commands to pass --features "…" to cargo. It would be nice if features was a Rust-specific key that we can use in build matrices etc.

---

## [Following rust-toolchain?](https://travis-ci.community/t/following-rust-toolchain/1356)

<div class="topic-metadata">

**Author:** [@breeswish](https://travis-ci.community/u/breeswish)\
**Replies:** 1\
**Last updated:** [December 11, 2018, 1:10pm UTC](https://travis-ci.community/t/following-rust-toolchain/1356 "2018-12-11T13:10:32Z")

</div>

My project uses rust-toolchain to specify and lock a rustc version. So now Travis will install Rust two times, 1 installing latest nightly or beta or stable, 1 installing the version specified by rust-toolchain file. It …

---

## [macOS + Rust beta build failures](https://travis-ci.community/t/macos-rust-beta-build-failures/803)

<div class="topic-metadata">

**Author:** [@chrissimpkins](https://travis-ci.community/u/chrissimpkins)\
**Replies:** 3\
**Last updated:** [November 9, 2018, 9:44pm UTC](https://travis-ci.community/t/macos-rust-beta-build-failures/803 "2018-11-09T21:44:07Z")

</div>

In the last ~24 hours, I began to experience build failures with the combination macOS + Rust beta: $ curl -sSf https://build.travis-ci.org/files/rustup-init.sh | sh -s -- --default-toolchain=$TRAVIS\_RUST\_VERSION -y inf…
