| use snafu::Snafu; | |
| /// Error type for all API traits | |
| /// Note: Do not put implementation specific errors here (so no errors from reqwest, serde, etc.) | |
| /// These should be generic errors that can be used by any API implementation. | |
| /// The implementation specific errors should be defined locally for each API implementation then | |
| /// converted to this error type before being returned. | |
| /// | |
| /// Hint: use [From] to convert implementation specific errors to this error type. You can define | |
| /// an error snafu enum inside the same file as an api implementation and also implement the |
I've been writing Rust full-time with a small team for over a year now. Throughout, I've lamented the lack of clear best practices around defining error types. One day, I'd love to write up my journey and enumerate the various strategies I've both seen and tried. Today is not that day.
Today, I want to reply to a blog post that almost perfectly summarised my current practice.
Go read it; I'll wait!
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.
| name: Security audit | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| push: | |
| paths: | |
| - '**/Cargo.toml' | |
| - '**/Cargo.lock' | |
| jobs: | |
| security_audit: |
| { | |
| "Version": "13.0.1", | |
| "Name": "Skynet (SiaSky.net)", | |
| "DestinationType": "ImageUploader, TextUploader, FileUploader", | |
| "RequestMethod": "POST", | |
| "RequestURL": "https://siasky.net/skynet/skyfile", | |
| "Body": "MultipartFormData", | |
| "FileFormName": "file", | |
| "URL": "https://siasky.net/$json:skylink$" | |
| } |
| [ | |
| "allterrohuntcoop_hard_bestscore", | |
| "allterrohuntcoop_normal_bestscore", | |
| "allterrohuntcoop_realistic_bestscore", | |
| "allterrohuntsolo_hard_bestscore", | |
| "allterrohuntsolo_normal_bestscore", | |
| "allterrohuntsolo_realistic_bestscore", | |
| "casualpvp_death", | |
| "casualpvp_kdratio", |
BEGINNER'S GUIDE - ALL CONTROLS + TIPS (Escape from Tarkov)
- Hold Shift when zoomed in with Mouse Right Click to hold breath and steady aim
- Press B to switch between firing modes 🔥 (You will always start a raid in single fire mode)
- The animation when switching to 🔥 🔥 🔥 fire is an ⬆️ flick
- The animation when switching to 🔥 fire is an ⬇️ flick