Skip to content

Commit 6d42b3b

Browse files
committed
ci: lint Rust code
1 parent 1fcd24f commit 6d42b3b

File tree

6 files changed

+33
-0
lines changed

6 files changed

+33
-0
lines changed

.github/workflows/build.yml

+8
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,10 @@ jobs:
342342
export LSAN_OPTIONS="suppressions=${GITHUB_WORKSPACE}/.lsan_suppressions"
343343
meson test -C build
344344
345+
- name: Lint Rust
346+
run: |
347+
ninja -C build clippy
348+
345349
- name: Print meson test log
346350
if: ${{ failure() && steps.tests.outcome == 'failure' }}
347351
run: |
@@ -600,6 +604,10 @@ jobs:
600604
run: |
601605
meson test -C build
602606
607+
- name: Lint Rust
608+
run: |
609+
ninja -C build clippy
610+
603611
- name: Print meson test log
604612
if: ${{ failure() && steps.tests.outcome == 'failure' }}
605613
run: |

subprojects/packagefiles/isolang/meson.build

+5
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

+5
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

+5
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

+5
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

+5
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)