Before you can start working on Burrow, you'll need to install some dependencies. They are different for each platform:
Linux
- Install rustup using the instructions on the website:
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install Visual Studio Code from the website, Snap Store, or your package manager of choice.
macOS
- Install rustup using the instructions on the website:
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Download and install Visual Studio Code from the website, or by using brew:
brew install --cask visual-studio-code
-
Download and Install Xcode from the App Store or the Apple Developer website.
-
Make sure the "current" version of Xcode matches the one you are using:
$ xcode-select -p
If the output is not the version of Xcode you just installed, run the following command to switch to the new version:
$ sudo xcode-select -s {PATH_TO_XCODE}
Windows
-
Download Visual Studio community edition from the website. Install the components for "Desktop Development with C++"
-
Install Visual Studio Code, PowerShell and Windows Terminal from the Microsoft Store
-
Open Windows Terminal and use winget to install git, LLVM and rustup:
winget install Git.Git
winget install LLVM.LLVM
winget install Rustlang.Rustup
- Install Rust using rustup:
rustup toolchain install stable-msvc
- Clone the repository:
git clone git@github.com:hackclub/burrow.git
- Open the
burrow
folder in Visual Studio Code:
code burrow
- Install the Visual Studio Code extensions rust-analyzer and CodeLLDB. You should get a suggestion to do this automatically:
- Compile burrow in Visual Studio Code by selecting
Terminal -> Run Build Task
Command Line
You can run burrow on the command line with cargo:
cargo run
Cargo will ask for your password because burrow needs permission in order to create a tunnel.
Visual Studio Code
You can debug the Rust program inside of Visual Studio using the Run and Debug tab.
This does not work fully yet. Visual Studio Code does not have a way to debug programs with administrative privileges.
iOS or macOS
You can run the Burrow app on iOS or macOS using Xcode.
You will need to be logged in with your Apple ID, and it should be a part of The Hack Foundation team:
If your Apple ID is not a part of The Hack Foundation team, ask the Slack channel for assistance.
You should now be able to run the app by opening Apple/Burrow.xcodeproj
in Xcode, selecting the App scheme and clicking Run.