This repo contains an introductory Rust tutorial which contains visualizations generated with RustViz. It is intended to be used in the Rust unit in EECS 490 at the University of Michigan.
To easily copy over code examples from the rustviz repo, you can run
copy_assets.sh
. This will copy the source code and SVGs from the
svg_generator/examples
directory in the rustviz repo to the
src/assets/code_examples
directory in this repo. Some things to note:
- The script should only be run from the
rustviz-tutorial
directory. rustviz-tutorial
andrustviz
must have the same parent directory for the script to work.- The script will overwrite any existing files with the same name.
- This script doesn't actually run the svg_generator. It simply copies existing files. You should run the svg generator examples first.
- Install mdbook using
cargo install mdbook
- Navigate to the
rustviz-tutorial
directory and runmdbook build
- Navigate to the
rustviz-tutorial/book
directory and runpython3 -m http.server
. You should be able to view the tutorial in your browser at http://localhost:8000/