Skip to content

Rust/rusty: Put 'unsafe' keyword in function prototypes #26

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

Closed
wants to merge 1 commit into from

Conversation

ac000
Copy link
Member

@ac000 ac000 commented Nov 1, 2023

From discussions on GitHub, people would like to see (besides a more idiomatic Rust API) the Rust functions more explicitly marked as 'unsafe'.

Uplift 'unsafe' from the function body into the function prototype.

Link: #25

From discussions on GitHub, people would like to see (besides a more
idiomatic Rust API) the Rust functions more explicitly marked as
'unsafe'.

Uplift 'unsafe' from the function body into the function prototype.

Link: <nginx#25>
Signed-off-by: Andrew Clayton <[email protected]>
@ac000
Copy link
Member Author

ac000 commented Nov 1, 2023

Scratch this idea. It would mean you'd need to wrap every call to a rusty function in unsafe { }. Nah...

@ac000 ac000 closed this Nov 1, 2023
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