Skip to content

fix: resolve source build warnings - #807

Open
Amqx wants to merge 4 commits into
Aidoku-Community:mainfrom
Amqx:ci/pin-rustc
Open

Amqx wants to merge 4 commits into
Aidoku-Community:mainfrom
Amqx:ci/pin-rustc

Conversation

@Amqx

@Amqx Amqx commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

the build workflows for this repo don't pin the rustc versions. after this recent actions run using rustc v1.99.0 a bunch of sources started emitting warnings that will eventually turn to errors. this pr fixed those warnings (most of them are the macro changes with ;, see rust-lang/rust#79813), ran a lint + format over affected files, then pinned the CI versions to rust toolchain v1.99.0 (one used in that CI run). if you don't like the ci rustc version pinning feel free to remove it and just keep the fixes.

@kkantan kkantan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for the pr. I have been intending to do this, and also to go through and find non-working sources that have not been reported, but I haven't found the time yet.

however, can you also update the aidoku package dependency for all sources? this will fix some of the bail macro usages automatically without needing other changes, and will fix potential issues like this, according to skitty. source versions can be kept as-is.

Comment thread sources/en.asurascans/src/lib.rs Outdated
Comment on lines +485 to +487
_ => {
bail!("Invalid listing");
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes like this shouldn't be necessary if aidoku-rs is updated: Aidoku/aidoku-rs#38.

@Amqx

Amqx commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor Author

i will do the manual upgrade for all sources, then undo the; changes since it's fixed in aidoku-rs

however, i'd also like you to consider maybe transitioning this repo from individual cargo projects into a workspace with all its crates. i know the aidoku-rs cli doesn't support it at all and prefers individual crates, but for a repo containing multiple sources a workspace fits it so well. it would give you access to shared dependencies, of which you can ensure all sources are on the same revision and are easily upgradeable, and also reduce compile time for building more than 1 crate since dependencies can be reused across sources (especially common ones like aidoku-rs and serde).

clippy checks would be much faster too

This branch has not been deployed

No deployments
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