Skip to content

feat: update rust edition#115

Merged
c12i merged 7 commits intomasterfrom
feat/update-rust-edition
Jan 26, 2026
Merged

feat: update rust edition#115
c12i merged 7 commits intomasterfrom
feat/update-rust-edition

Conversation

@itsyaasir
Copy link
Copy Markdown
Collaborator

@itsyaasir itsyaasir commented Aug 12, 2025

  • Fix clippy error

  • Add rust fmt rules

  • Added opinionated rust formatting rules.

  • Change to cargo llvm for coverage since it is more accurate and easier to use compared to taurpaulin

- Fix clippy error
- Add rust fmt rules
@itsyaasir itsyaasir self-assigned this Aug 12, 2025
- Introduced .cargo/audit.toml to manage advisory ignores.
- Updated GitHub Actions workflows to use actions/checkout@v4 and added steps to install Rust toolchain and cargo audit.
- Modified audit and general workflows to run cargo audit and cargo fmt with the new configuration.
- Added concurrency configuration to audit, general, and release workflows to prevent overlapping runs.
- Updated the trigger conditions for the general workflow to specify the master branch for push events.
- Added lifetime annotations to builder methods in the Mpesa client to improve type safety and prevent potential borrowing issues.
@itsyaasir itsyaasir requested review from c12i and crispinkoech August 12, 2025 13:23
- Refactored the coverage job in the general workflow to use cargo-llvm-cov for generating code coverage reports.
- Updated steps to install Rust and upload coverage results to Codecov, enhancing the CI process.
- Removed the CODECOV_TOKEN from the general workflow configuration to enhance security and prevent exposure of sensitive information.
@itsyaasir
Copy link
Copy Markdown
Collaborator Author

@c12i do you want to try codecov for using the coverage code better and display in the PR otherwise we really don't know what the coverage generates

Copy link
Copy Markdown
Owner

@c12i c12i left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes. Approved with some suggestions on the security advisories.

@c12i do you want to try codecov for using the coverage code better and display in the PR otherwise we really don't know what the coverage generates

Definitely open to doing that, codecov already integrates smoothly with cargo-tarpaulin.

@itsyaasir
Copy link
Copy Markdown
Collaborator Author

@c12i I did change from taurpaulin to cargo llvm as it is more accurate from my readings and usage.

@itsyaasir itsyaasir requested a review from c12i August 14, 2025 08:32
@itsyaasir
Copy link
Copy Markdown
Collaborator Author

@c12i you can go ahead and create an account for it (free for public repos) and add the secret to the action

@c12i c12i merged commit a8909d7 into master Jan 26, 2026
4 of 5 checks passed
@c12i c12i deleted the feat/update-rust-edition branch January 26, 2026 08:43
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