Public Repository

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

Warning: this runner has been deprecated in favor of the rust image, which is more flexible and generic.
See the repository for more details.


This is a Rust 1.15 runner that:

  • builds the project once using cargo build (i.e. fetches dependencies and compiles initial source files)
  • executes tests thanks to the cargo test command.

How to Use

In order to use this runner for your project, edit the techio.yml file and add the following lines to your project:

    runner: techio/rust-cargo-runner:1.0.0-rust-1.15


Given the following project:

├── Cargo.toml
├── techio.yml
└── src

In this example, the user is asked to write the function to_upper (file

pub fn to_upper(string: &str) -> String {
    return string.to_uppercase();

In order to test the answer, the following unit test is created (file

pub fn test_to_upper() {
    use uppercase;
    let expected = "FOO";
    let actual = uppercase::to_upper("foO");
    assert_eq!(expected, actual);

and the file

pub mod string_tests;
pub mod uppercase;

In the markdown file, the unit test can be called using:

@[Test uppercase]({"stubs":[""], "command":"string_tests::test_to_upper"})
Docker Pull Command