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

Update unsafe #218

Merged
merged 3 commits into from
Oct 18, 2024
Merged

Update unsafe #218

merged 3 commits into from
Oct 18, 2024

Conversation

jonathanpallant
Copy link
Member

Updates the unsafe slides to talk about the new syntax.

Copy link

cloudflare-workers-and-pages bot commented Oct 18, 2024

Deploying ferrous-systems-rust-training with  Cloudflare Pages  Cloudflare Pages

Latest commit: eb8189f
Status: ✅  Deploy successful!
Preview URL: https://75ebcf54.ferrous-systems-rust-training.pages.dev
Branch Preview URL: https://update-unsafe.ferrous-systems-rust-training.pages.dev

View logs

@miguelraz
Copy link
Contributor

I like these changes.

I think it would be good to also add the new

unsafe extern {
    pub safe static TAU: f64;
    pub safe fn sqrt(x: f64) -> f64;
    pub unsafe fn strlen(p: *const u8) -> usize;
}

to the FFI slides.

@miguelraz miguelraz merged commit b4d8977 into main Oct 18, 2024
3 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