Skip to content

remove panic handlers #377

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

Merged
merged 2 commits into from
Oct 23, 2024
Merged

Conversation

qalisander
Copy link
Member

No description provided.

@qalisander qalisander force-pushed the remove-panic-handlers branch from 85b8dda to afc7b59 Compare October 23, 2024 13:41
@qalisander qalisander force-pushed the remove-panic-handlers branch from afc7b59 to 46bf0f1 Compare October 23, 2024 13:43
@@ -25,7 +25,7 @@ jobs:
with:
target: wasm32-unknown-unknown
components: rust-src
toolchain: nightly-2024-01-01
toolchain: nightly-2024-07-25
Copy link
Member Author

Choose a reason for hiding this comment

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

cargo-stylus refused to compile on nightly-2024-01-01 this time. There won't be a problem, when we will merge these changes after pr with nightly fix

@@ -1,4 +1,4 @@
#![cfg_attr(not(test), no_main, no_std)]
Copy link
Member Author

@qalisander qalisander Oct 23, 2024

Choose a reason for hiding this comment

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

As an option library user can add #[no_std] and have a #[panic_handler] in his contract.
For simplicity we can just opt out #[no_std] in examples.

Copy link
Member Author

Choose a reason for hiding this comment

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

Also I've noticed zero difference in terms of wasm size of example with #[no_std] and without it.

@qalisander qalisander marked this pull request as ready for review October 23, 2024 14:11
@qalisander qalisander requested a review from bidzyyys as a code owner October 23, 2024 14:11
@qalisander qalisander merged commit c49c7f3 into improve-default-allocators Oct 23, 2024
18 checks passed
@bidzyyys bidzyyys deleted the remove-panic-handlers branch December 10, 2024 10:52
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.

1 participant