Skip to content

feat(contract): split lib.rs into focused modules, pin toolchain, add security CI - #1066

Merged
mftee merged 1 commit into
CodeGirlsInc:mainfrom
Muhammadjazuli:feature/split-lib-and-pin-toolchain
Jul 28, 2026
Merged

feat(contract): split lib.rs into focused modules, pin toolchain, add security CI#1066
mftee merged 1 commit into
CodeGirlsInc:mainfrom
Muhammadjazuli:feature/split-lib-and-pin-toolchain

Conversation

@Muhammadjazuli

Copy link
Copy Markdown
Contributor

This PR refactors the monolithic contract module and hardens the build pipeline:

  • CT-52: Split 1174-line lib.rs into types.rs, handlers/ (verify, submit, revoke, transfer, health), routes.rs, and error.rs. lib.rs is now ~15 lines of module declarations only.
  • CT-51: Pinned Rust toolchain to 1.82.0 with rustfmt + clippy components via rust-toolchain.toml
  • CT-50: Documented sodiumoxide exact-pin rationale in Cargo.toml (ABI compatibility with stellar-sdk)
  • CT-49: Added cargo-audit and cargo-deny to CI with weekly scheduled security scan

Closes #1048
Closes #1049
Closes #1050
Closes #1051

… security CI

Closes CodeGirlsInc#1048
Closes CodeGirlsInc#1049
Closes CodeGirlsInc#1050
Closes CodeGirlsInc#1051

- CT-52: Split 1174-line lib.rs into types.rs, handlers/, routes.rs, error.rs (lib.rs now ~15 lines)
- CT-51: Pin Rust toolchain to 1.82.0 with rustfmt + clippy
- CT-50: Document sodiumoxide exact-pin rationale in Cargo.toml
- CT-49: Add cargo-audit and cargo-deny to CI with weekly scheduled security scan
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

@Muhammadjazuli is attempting to deploy a commit to the Mftee's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@Muhammadjazuli Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@mftee mftee 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.

Great code organization! Splitting lib.rs into focused modules improves maintainability, pinning toolchain ensures reproducibility, and adding security CI strengthens the development process.

@mftee
mftee merged commit 7c6bd9b into CodeGirlsInc:main Jul 28, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants