Development Setup
Getting Started
-
Setting Up Rust
In order to work with this project you'll need to setup a working Rust development environment that includes
rustc
andcargo
.-
For
OSX
andLinux
:curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
For
Windows
:Download the installer and follow the onscreen instructions.
-
-
Install
cargo-binstall
Most of the workflows in this project lean heavily upon cargo binary packages. While we could simply
cargo install <package>
, this allows you to install a pre-compiled binary for your environment and avoids a possible lengthy compile time.- For
OSX
andLinux
:
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
- For
Windows
:
Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1").Content
- For
-
Install
just
Build Tooljust
is the preferred build tool for this project, and that includes bootstrapping the remainder of your local environment. It can be installed with the following command:cargo binstall just
-
Finish Bootstrapping Environment
Once you have a working rust environment you can finish setting up the remainder of this project locally with the following command:
just init
-
Install
mdbook-journal
LocallyCreate a production build of the binary and install it to your crate local binary location:
just install