-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1762 from alerque/riir
- Loading branch information
Showing
24 changed files
with
1,616 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[target.x86_64-apple-darwin] | ||
rustflags = ["-C", "link-args=-rdynamic"] | ||
|
||
[target.x86_64-unknown-linux-gnu] | ||
rustflags = ["-C", "link-args=-rdynamic"] | ||
|
||
# Since autotools sets this and we are *not* forcing it here, this will not | ||
# affect release builds. It will affect `cargo run` and make it easier to test | ||
# locally since the Lua loader path will be relative to the current sources. | ||
# For debug builds it is assumed you configured `--without-system-luarocks`, | ||
# this convenience won't enable you to use system packages in debug builds. | ||
[env] | ||
SILE_PATH = { value = "", relative = true } | ||
|
||
[target.'cfg(all())'] | ||
rustflags = [ | ||
# CLIPPY LINT SETTINGS | ||
# This is a workaround to configure lints for the entire workspace, pending the ability to configure this via TOML. | ||
# See: `https://github.com/rust-lang/cargo/issues/5034` | ||
# `https://github.com/EmbarkStudios/rust-ecosystem/issues/22#issuecomment-947011395` | ||
"-Aclippy::clone_double_ref", | ||
"-Aclippy::ptr_arg", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Rust Lint | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
|
||
rustfmt: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
components: rustfmt | ||
- name: Cache Rust | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Run rustfmt | ||
run: | | ||
git ls-files '*.rs' | xargs rustfmt --check | ||
clippy: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
components: clippy | ||
- name: Cache Rust | ||
uses: Swatinem/rust-cache@v2 | ||
- uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ github.token }} | ||
args: -- -D warnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.