Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(l2): trying to implement no_panic crate #1389

Merged
merged 5 commits into from
Dec 10, 2024
Merged

Conversation

fborello-lambda
Copy link
Contributor

@fborello-lambda fborello-lambda commented Dec 3, 2024

Motivation

As explained by issue #1369, implementing the no_panic crate would help prevent some hidden panics.

Description

I've tried to implement it for the non-async functions, facing the following problems:

  • For functions interacting with TcpStream and the Database it throws a "panic compilation error".

  • The keccak function used and c-kzg throws the "panic compilation error".

  • no_panic seems to be a crate that aims to avoid panics in low level lib crates.

  • Found a potential panic in fake_exponential, it's solved by the fake_exponential_checked implementation.

  • Some extra changes regarding usability were added.

  • Remove pub keyword if not needed.

See if we can close the issue #1369

@fborello-lambda fborello-lambda self-assigned this Dec 3, 2024
@fborello-lambda fborello-lambda changed the title feat(l2): implement no_panic crate chore(l2): trying to implement no_panic crate Dec 3, 2024
@fborello-lambda fborello-lambda marked this pull request as ready for review December 3, 2024 15:45
@fborello-lambda fborello-lambda requested a review from a team as a code owner December 3, 2024 15:45
@jrchatruc jrchatruc added this pull request to the merge queue Dec 10, 2024
Merged via the queue into main with commit 006a7f2 Dec 10, 2024
16 checks passed
@jrchatruc jrchatruc deleted the l2/no_panic_crate branch December 10, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants