I used the 1.0.0-alpha version. Here's how I did it:
- Download the 1.0.0-alpha binaries here (not the nightly build!)
- Extract the .tar (just double-click on the file)
cd
into the new directory and runsh install.sh
By installing this way, you also get Cargo, the Rust build tool.
git clone https://github.com/davetttt/ttt_rust_2.git
cd ttt_rust_2
cargo test
cargo test
deletes the executable if one exists (so you'll have tocargo build
again).
cargo build
./target/ttt_rust
- Several compilation warnings have been ignored by placing
#[allow(<warning-causer>)]
and an explanation above the offending functions. However, running the tests still warns that the program'smain
function is never used because there aren't any tests that call it. Placing#[allow(dead_code)]
abovemain
ignores warnings generated elsewhere so I decided against ignoring that warning.