Sitelet https://github.com/starkware-libs/cairo/pull/9882
Skip to content

bugfix(corelib): Maded bounde-int type pub. - #9882

Merged
orizi merged 1 commit into
mainfrom
orizi/04-28-bugfix_corelib_maded_bounde-int_type_pub
Apr 28, 2026
Merged

orizi merged 1 commit into
mainfrom
orizi/04-28-bugfix_corelib_maded_bounde-int_type_pub

Conversation

@orizi

@orizi orizi commented Apr 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

BoundedInt is changed from pub(crate) visibility to fully pub, making it part of the public API.


Type of change

Please check one:

  • Bug fix (fixes incorrect behavior)
  • New feature
  • Performance improvement
  • Documentation change with concrete technical impact
  • Style, wording, formatting, or typo-only change

⚠️ Note:
To keep maintainer workload sustainable, we generally do not accept PRs that
are only minor wording, grammar, formatting, or style changes.
Such PRs may be closed without detailed review.


Why is this change needed?

BoundedInt was previously restricted to crate-internal use only, preventing external consumers from referencing or using this type directly. Exposing it publicly allows downstream users and libraries to leverage bounded integer types in their own code.


What was the behavior or documentation before?

BoundedInt<MIN, MAX> was declared pub(crate), meaning it could only be used within the corelib crate itself.


What is the behavior or documentation after?

BoundedInt<MIN, MAX> is now declared pub, making it accessible to any external crate or user code that imports it from corelib::internal::bounded_int.


Related issue or discussion (if any)


Additional context

Note that BoundedIntGuarantee remains pub(crate) and is not affected by this change.

@reviewable-StarkWare

Copy link
Copy Markdown

This change is Reviewable

orizi commented Apr 28, 2026

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@orizi
orizi requested a review from TomerStarkware April 28, 2026 13:06
@orizi
orizi marked this pull request as ready for review April 28, 2026 13:06
@cursor

cursor Bot commented Apr 28, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Low implementation risk (visibility-only change), but it expands the public API surface so downstream code may start depending on corelib::internal::bounded_int::BoundedInt.

Overview
Makes BoundedInt<MIN, MAX> in corelib/src/internal/bounded_int.cairo public (from pub(crate) to pub), allowing external crates to name and use the bounded integer type. BoundedIntGuarantee remains crate-private; no functional logic changes are included.

Reviewed by Cursor Bugbot for commit 4252dae. Bugbot is set up for automated code reviews on this repo. Configure here.

@TomerStarkware TomerStarkware left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

:lgtm:

@TomerStarkware reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on orizi).

@orizi
orizi added this pull request to the merge queue Apr 28, 2026
Merged via the queue into main with commit 3e8f26c Apr 28, 2026
54 checks passed
@orizi
orizi deleted the orizi/04-28-bugfix_corelib_maded_bounde-int_type_pub branch April 28, 2026 14:10
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.

3 participants