🦀 Advanced Programming Course Project 🦀
If you use nix, a flake is here for you. Activate the environment with direnv allow
and you will get the right versions of everything and a VScode already configured with all the extensions.
Otherwise, you will need the following:
- rustup (v1.25.1)
- cargo (v1.64.0)
- rustfmt (v1.5.1-stable)
- Your code editor of choice
- If you use VScode, we suggest you to install these extensions so that you can use our launch configurations (when you open the directory, you will get an automatic prompt to install them in one click):
rust-lang.rust-analyzer
vadimcn.vscode-lldb
- If you use VScode, we suggest you to install these extensions so that you can use our launch configurations (when you open the directory, you will get an automatic prompt to install them in one click):
-
Ping
advancedprogramming.disi.unitn.it
. This should fail since you'll need to connect to University of Trento's VPN to accessadvancedprogramming.disi.unitn.it
-
Open the GlobalProtect VPN client by running
sudo gpclient
(be sure to follow the setup instructions from the official repo) -
Enter as portal address
vpn.icts.unitn.it
-
The username is your unitn email without the "studenti" subdomain -e.g.,
[email protected]
- -
The password is your unitn password
-
The VPN will show the status 'Connected'.
-
Now you should be able to successfully ping
advancedprogramming.disi.unitn.it
-
Create a file
.env
with the same contents of.env.sample
(to do so, you can runcp .env.sample .env
). -
Add the token you have received by mail from [email protected] in date 20/10/22 in the
.env
. -
Note that previously active shells/terminal emulators may not pick up automatically the new environment variable and you may need to restart them.
-
cd
in a crate and run acargo update
to confirm you have access tokellnr
.