Skip to content

Commit 77be29b

Browse files
committed
ci: lint Rust code
1 parent 6d4e867 commit 77be29b

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
@@ -357,6 +357,10 @@ jobs:
357357
export LSAN_OPTIONS="suppressions=${GITHUB_WORKSPACE}/.lsan_suppressions"
358358
meson test -C build
359359
360+
- name: Lint Rust
361+
run: |
362+
ninja -C build clippy
363+
360364
- name: Print meson test log
361365
if: ${{ failure() && steps.tests.outcome == 'failure' }}
362366
run: |
@@ -615,6 +619,10 @@ jobs:
615619
run: |
616620
meson test -C build
617621
622+
- name: Lint Rust
623+
run: |
624+
ninja -C build clippy
625+
618626
- name: Print meson test log
619627
if: ${{ failure() && steps.tests.outcome == 'failure' }}
620628
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)