Crates.io | grade_calculator |
lib.rs | grade_calculator |
version | 1.1.2 |
source | src |
created_at | 2023-04-30 06:02:41.169522 |
updated_at | 2023-11-27 20:02:12.15343 |
description | Calculates and keeps track of grades for a single course using information found in the course's syllabus. |
homepage | |
repository | https://github.com/TheOGChips/grade_calculator |
max_upload_size | |
id | 852580 |
size | 75,440 |
A simple program for calculating grades for your college courses, now in the Rust edition using a Cursive-built TUI. Use it to keep track of your course grades throughout the semester and track your progress.
If your system can use Rust/Cargo, it can run this grade_calculator
. This was tested using the current version of Rust available through apt
on Debian (1.63
) and Homebrew on MacOS (1.68
).
$ apt install rust-all
$ brew install rust
Note for Windows users: Although untested, the TUI uses the cross-platform crossterm
backend and should have no trouble working directly on Windows outside of WSL, if that's how you've chosen to install Rust.
This program relies on the cursive
and cursive-aligned-view
crates on crates.io
.
Open a terminal window inside the root directory of this repository. You should see the files Cargo.toml
, Cargo.lock
, and the src
subdirectory. Run the following command:
$ cargo build --release
The binary will be present in the target/release
subdirectory as grade_calculator
on MacOS and Linux or grade_calculator.exe
on Windows.
Open a terminal window and type the following command:
$ cargo install grade_calculator
Cargo should give appropriate information about sourcing your shell configuration files.
Either move or link to the binary at the path mentioned above if built from source. If downloaded from crates.io, source your shell configuration files appropriately. At a terminal prompt, type the following:
$ grade_calculator
>grade_calculator.exe
To view this crate's documentation, open a terminal window at the path mentioned above and type the following:
$ cargo doc --open
The documentation should open up in your default web browser.