Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danydodson/clipstash
✨ Clipstash
https://github.com/danydodson/clipstash
Last synced: 27 days ago
JSON representation
✨ Clipstash
- Host: GitHub
- URL: https://github.com/danydodson/clipstash
- Owner: danydodson
- Created: 2024-08-11T09:05:53.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-12T00:59:48.000Z (6 months ago)
- Last Synced: 2024-11-07T13:26:52.687Z (3 months ago)
- Language: Rust
- Size: 43 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# About
This repository is part of the Rust programming language course available at
[zerotomastery.io](https://zerotomastery.io/). This repository (along with the
lecture slides for this course) is available as a zip package [here](https://cdn.jayson.info/ztm/zerotomastery.io-rust.zip).## Activities
To work on activities, open up your editor/IDE to the `activities` directory.
The activities can can be ran by executing `cargo run --bin a1` in your
terminal, where `a1` is the name of the activity file you are working on.## ClipStash
To work on the ClipStash project, open up your editor/IDE to the `clipstash`
directory. You will then be able to run `cargo check` to check your code,
`cargo test` to test your code, or `cargo run --bin name` where `name` is the name
of the binary you wish to run.If you are getting compilation errors related to
`rocket::response::content::Html`
or
`rocket::response::content::RawHtml`
then run these commands to fix:```sh
cargo update --package rocket --precise 0.5.0-rc.1
cargo update --package rocket_codegen --precise 0.5.0-rc.1
cargo update --package rocket_http --precise 0.5.0-rc.1
```## Solutions
To view solutions for the activities, and for the ClipStash project, checkout
the `solutions` branch by running `git checkout solutions` after cloning this repo.### ClipStsh
The ClipStash project requires additional steps in order to properly build.
You will need the `sqlx-cli` tool which can be installed by running```sh
cargo install sqlx-cli
```After installing the tool, you can configure the database for the project by running
```sh
sqlx database setup
```