Skip to content

Is the arena allocation safe from invisible "safe unsafety"? #965

Answered by gbj
lahwran asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! I'm not a heavy rust programmer, just trying to pick a gui library and shopping (don't tell anyone, but I'm maybe having more fun than necessary shopping).

That's the most fun part!

I'd like to use leptos and not have to fix or identify particularly esoteric bugs. I like the design overall, but can I trust that the arena allocation isn't going to have, eg, memory leaks or allocation conflicts, that the borrow checker can't see because they're not real rust ownership? What sort of protection against that is designed into leptos?

Leptos itself doesn't include any unsafe code; it's built on the safe interface of slotmap.

The worst memory issues that can happen are memory leaks, usua…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lahwran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants