Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Shield unsafe behind optimized feature #28

Open
vlopes11 opened this issue Oct 22, 2021 · 1 comment
Open

Shield unsafe behind optimized feature #28

vlopes11 opened this issue Oct 22, 2021 · 1 comment
Assignees

Comments

@vlopes11
Copy link
Contributor

Implement a new feature optimized to shield all unsafe usage.

When this feature is on, unsafe is allowed

When this feature is off, we should introduce forbid_unsafe in the root of the library:
src/lib.rs: #![cfg_attr(not(feature = "optimized"), forbid(unsafe_code))]

This means that all functions that use unsafe will have to be reimplemented with their safer (and potentially slower) counterparts

@vlopes11
Copy link
Contributor Author

Blocked by FuelLabs/fuel-types#5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants