Skip to content

Add no_panic feature - #28

Merged
Alexhuszagh merged 2 commits into
Alexhuszagh:mainfrom
malbarbo:no_panic
Aug 13, 2026
Merged

Add no_panic feature#28
Alexhuszagh merged 2 commits into
Alexhuszagh:mainfrom
malbarbo:no_panic

Conversation

@malbarbo

Copy link
Copy Markdown

No description provided.

@malbarbo

Copy link
Copy Markdown
Author

I'm using this crate and producing some wasm file, when this feature is enabled, the size of the wasm file is reduced.

@Alexhuszagh Alexhuszagh left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Sorry for the massive delay: for some reason I didn't get any notifications from Github for a period. My email is in my Github bio for whatever reason in case I stop getting Github emails: feel free to reach out to me directly there as well.

The general approach looks good, I do have a few changes I'd like to see, specifically to ensure safety invariants are guaranteed (or, in no-panic mode, if they are not).

Security issues have been an issue: when I took over this fork, there was a lot of non-local safety invariants and also some undefined behavior that was fixed. So although everything is sound here, I'd much rather these be very clearly documented, both for source maintainers and for end-users, the panic behaviors.

Comment thread src/decimal.rs Outdated
Comment thread src/lib.rs Outdated
Comment thread README.md Outdated
@Alexhuszagh

Copy link
Copy Markdown
Owner

The miri test failures are expected: it seems like there's a miri bug in recent versions of Rust causing rounding errors (this affects main as well).

@Alexhuszagh
Alexhuszagh merged commit 43a49a5 into Alexhuszagh:main Aug 13, 2026
16 of 21 checks passed
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