'Build a Full-Stack Twitter Clone with Rust' course code and notes
As the Cargo.lock
file is included in this repository, you can update the dependencies by running:
cargo update
To add a new dependency to one of the crates, run:
cargo add -p <crate_name> <dependency>
This will check for the dependencies listed above and attempt to install the Rust dependencies. Dependencies which require manual install will provide a link to installation instructions.
cargo run -p project-init
cargo install watchexec-cli
If on windows, also run:
cargo install --locked wasm-bindgen-cli
To format the code, run:
cargo fmt
To lint the code, run:
cargo clippy
To fix the code, run:
just fix
-
To visualize notes right next to their example implementations that are scattered throughout this repository, I'd recommend using the VS Code extension
Todo Tree
, and then just filter for any comment with aNOTE
prefix to it.- e.g.
// NOTE This contains a note
- e.g.
-
You can also just search for
NOTE
(case sensitive and with one whitespace afterwards) in the IDE of your choice and it should show every note in the project.