Simple quadratic equation implementation in rust.
.
├── Cargo.lock
├── Cargo.toml
├── README.md
└── src
└── main.rs
2 directories, 4 files
If you already have rust installed on your system, you can skip to Getting the source code
. To check if Rust is installed on your system, type:
rustup --version
If rust is installed, you should see the output:
rustc x.y.z (abcabcabc yyyy-mm-dd)
to indicate the version of Rust installed.
If you're running macOS, Linux, or another Unix-like OS, run the following command to download Rustup and install Rust. Follow the on-screen instructions, and, when prompted, press enter to accept the default configuration.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
You may need to restart your terminal session to refresh your PATH and other environment variables.
If you're running Windows, download and run the installer, rustup-init.exe and then follow the on-screen instructions. You may need to restart your terminal session to refresh your PATH and other environment variables.
If you want to build the Rust toolchain from source code, want an offline installation, prefer a more platform-integrated, graphical installer on Windows, or want to install Rust on a different system, visit this official website, or the official landing page.
Clone this repository or download the zip file. If you downloaded the zip file, make sure you extract the archive. Then, in the project folder, rust-quad
, run:
cargo build --release
which should produce the resultant binary in /path/to/rust-quad/target/release/
.
Furthermore, to add the compiled binary as a command, type:
cargo install --path .
and run the application anywhere with:
rust-quad