Skip to content

Update ctest to 0.5 and cubeb-sys to edition 2021 - #134

Merged
kinetiknz merged 3 commits into
mozilla:masterfrom
padenot:ctest-editions-clippy-fix
Jun 10, 2026
Merged

Update ctest to 0.5 and cubeb-sys to edition 2021#134
kinetiknz merged 3 commits into
mozilla:masterfrom
padenot:ctest-editions-clippy-fix

Conversation

@padenot

@padenot padenot commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

ctest 0.4.11 no longer compiles against current rustc due to an API change in garando_syntax. ctest 0.5 fixes this but requires edition 2021 for macro expansion.

Update cubeb-sys to edition 2021 and add crate:: prefixes to all intra-crate imports. Adapt systest/build.rs to the renamed ctest 0.5 API (type_name/field_name -> rename_struct_field, generate -> generate_files). Suppress clippy lints on ctest-generated code in systest/src/main.rs.

@padenot
padenot requested a review from kinetiknz June 9, 2026 16:51
@padenot
padenot force-pushed the ctest-editions-clippy-fix branch from 293e012 to e9bfaf8 Compare June 9, 2026 16:55
padenot and others added 3 commits June 10, 2026 21:50
ctest 0.4.11 no longer compiles against current rustc due to an API
change in garando_syntax. ctest 0.5 fixes this but requires edition
2021 for macro expansion.

Update cubeb-sys to edition 2021 and add crate:: prefixes to all
intra-crate imports. Adapt systest/build.rs to the new ctest 0.5 API:
type_name → rename_struct_ty, field_name → rename_struct_field, and
generate → ctest::generate_test (generate_files alone only writes the
test sources without compiling and linking the C side). Suppress
clippy lints on ctest-generated code in systest/src/main.rs.
…red backends

Under `cargo clippy -- -D warnings`, RUSTC_WORKSPACE_WRAPPER and
CLIPPY_ARGS are inherited by the cargo invocation cmake runs to build
cubeb-coreaudio-rs/cubeb-pulse-rs, so clippy lints in those vendored
trees fail the build. Scrub the wrapper variables so the nested build is
a plain cargo build.
@kinetiknz
kinetiknz force-pushed the ctest-editions-clippy-fix branch from 200292b to 631a78e Compare June 10, 2026 09:51
@kinetiknz
kinetiknz merged commit f52b814 into mozilla:master Jun 10, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants