Skip to content

Commit 87daf1d

Browse files
committed
ci: lint Rust code
1 parent b347264 commit 87daf1d

File tree

6 files changed

+33
-0
lines changed

6 files changed

+33
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,10 @@ jobs:
358358
export LSAN_OPTIONS="suppressions=${GITHUB_WORKSPACE}/.lsan_suppressions"
359359
meson test -C build
360360
361+
- name: Lint Rust
362+
run: |
363+
ninja -C build clippy
364+
361365
- name: Print meson test log
362366
if: ${{ failure() && steps.tests.outcome == 'failure' }}
363367
run: |
@@ -616,6 +620,10 @@ jobs:
616620
run: |
617621
meson test -C build
618622
623+
- name: Lint Rust
624+
run: |
625+
ninja -C build clippy
626+
619627
- name: Print meson test log
620628
if: ${{ failure() && steps.tests.outcome == 'failure' }}
621629
run: |

subprojects/packagefiles/isolang/meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ project(
55
license: 'Apache-2.0',
66
)
77

8+
rust_args = [
9+
'-Aclippy::all',
10+
]
11+
812
lib = static_library(
913
'isolang',
1014
'src/lib.rs',
1115
override_options: ['rust_std=2021', 'build.rust_std=2021'],
1216
rust_abi: 'rust',
17+
rust_args: rust_args,
1318
dependencies: dependency('phf', fallback: ['phf', 'phf_dep']),
1419
)
1520

subprojects/packagefiles/language-tags/meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ project(
55
license: 'MIT OR Apache-2.0',
66
)
77

8+
rust_args = [
9+
'-Aclippy::all',
10+
]
11+
812
lib = static_library(
913
'language_tags',
1014
'src/lib.rs',
1115
override_options: ['rust_std=2021', 'build.rust_std=2021'],
1216
rust_abi: 'rust',
17+
rust_args: rust_args,
1318
)
1419

1520
language_tags_dep = declare_dependency(

subprojects/packagefiles/phf/meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ project(
55
license: 'MIT',
66
)
77

8+
rust_args = [
9+
'-Aclippy::all',
10+
]
11+
812
lib = static_library(
913
'phf',
1014
'src/lib.rs',
1115
override_options: ['rust_std=2021', 'build.rust_std=2021'],
1216
rust_abi: 'rust',
17+
rust_args: rust_args,
1318
dependencies: dependency('phf_shared', fallback: ['phf_shared', 'phf_shared_dep']),
1419
)
1520

subprojects/packagefiles/phf_shared/meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ project(
55
license: 'MIT',
66
)
77

8+
rust_args = [
9+
'-Aclippy::all',
10+
]
11+
812
lib = static_library(
913
'phf_shared',
1014
'src/lib.rs',
1115
override_options: ['rust_std=2021', 'build.rust_std=2021'],
1216
rust_abi: 'rust',
17+
rust_args: rust_args,
1318
dependencies: dependency('siphasher', fallback: ['siphasher', 'siphasher_dep']),
1419
)
1520

subprojects/packagefiles/siphasher/meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ project(
55
license: 'MIT OR Apache-2.0',
66
)
77

8+
rust_args = [
9+
'-Aclippy::all',
10+
]
11+
812
lib = static_library(
913
'siphasher',
1014
'src/lib.rs',
1115
override_options: ['rust_std=2021', 'build.rust_std=2021'],
1216
rust_abi: 'rust',
17+
rust_args: rust_args,
1318
)
1419

1520
siphasher_dep = declare_dependency(

0 commit comments

Comments
 (0)