-
Notifications
You must be signed in to change notification settings - Fork 6
House-keeping Improvements #792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,8 @@ permissions: | |
| contents: read | ||
|
|
||
| env: | ||
| WARNINGS_AS_ERRORS: yes | ||
| RUSTFLAGS: "-D warnings" | ||
| RUSTDOCFLAGS: "-D warnings" | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
|
|
@@ -30,8 +31,6 @@ jobs: | |
| run: cargo clippy --all-targets --no-deps -p slicec | ||
| - name: 📚 Generate Documentation | ||
| run: cargo doc --document-private-items --no-deps -p slicec | ||
| env: | ||
| RUSTDOCFLAGS: "-D warnings" | ||
|
Comment on lines
-33
to
-34
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Better to set this for all jobs, instead of doing it for every single one. |
||
|
|
||
| slice-codec: | ||
| strategy: | ||
|
|
@@ -64,8 +63,6 @@ jobs: | |
| run: cargo clippy --all-targets --no-default-features $FEATURES --no-deps -p slice-codec | ||
| - name: 📚 Generate Documentation | ||
| run: cargo doc --document-private-items --no-deps --no-default-features $FEATURES -p slice-codec | ||
| env: | ||
| RUSTDOCFLAGS: "-D warnings" | ||
|
|
||
| format: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,10 @@ | ||
| name: "Check spelling" | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: ['main'] | ||
| pull_request: | ||
| branches: ['main'] | ||
|
|
||
|
Comment on lines
+5
to
8
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For parity with our other workflow files. |
||
| permissions: | ||
| contents: read | ||
|
|
@@ -15,4 +17,4 @@ jobs: | |
| - uses: streetsidesoftware/cspell-action@v8 | ||
| with: | ||
| files: | | ||
| **/*.{rs,md,json} | ||
| **/*.{rs,slice,md,json,yml,toml} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Spell check everything! |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,10 +2,6 @@ | |
| # will have compiled files and executables | ||
| target/ | ||
|
|
||
| # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
| # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
| Cargo.lock | ||
|
Comment on lines
-5
to
-7
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Rust team has softened their stance about including the Cargo.lock file. By making sure to update our dependencies more often, this becomes a non-issue though. |
||
|
|
||
| # These are backup files generated by rustfmt | ||
| **/*.rs.bk | ||
|
|
||
|
|
||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I went through and checked which of these words was actually still necessary, since we've pruned and removed alot of code from slicec after dropping Slice1 support. Sure enough, many of them are no longer necessary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was apparently useless?
Maybe we had some custom logic using it in the past, but nothing in Rust checks or cares about this environment variable.