dyn_struct
Construct dynamically sized types safely (by nolanderc)
pointer-utils
A collection of small utilities for working with pointer types in Rust. (by CAD97)
dyn_struct | pointer-utils | |
---|---|---|
1 | 4 | |
11 | 116 | |
- | - | |
0.0 | 0.0 | |
6 months ago | 12 months ago | |
Rust | Rust | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dyn_struct
Posts with mentions or reviews of dyn_struct.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-10-19.
pointer-utils
Posts with mentions or reviews of pointer-utils.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-07-11.
-
Freeing slice without knowing it’s size
I think you can use slice-dst which embed the size of the array in the heap allocation and returns a thin pointer
-
dyn_struct: create types whose size is determined at runtime using safe Rust
Take a look at these crates: - triomphe for creating Arc reference to unsized struct - pointer-utils also provides similar functionalities compared to your crate
-
Basedrop: A garbage collector for real-time audio in Rust
You might be interested in the unsize crate which provides a pattern to replace/supplement this on stable Rust. I don't think it's very like that CoerceUnsized is stabilized soon. There are a few other no-std crates that have already integrated this approach 1 2 although none with a release yet. It's also gotten some review from the black-magic channel on Discord if you're worried about soundness.
-
Dynamically Aligned Types?
I'm a shill, use my crates; numbers go up make me feel good.
What are some alternatives?
When comparing dyn_struct and pointer-utils you can also consider the following projects:
deno - A modern runtime for JavaScript and TypeScript.
generational-arena - A safe arena allocator that allows deletion without suffering from the ABA problem by using generational indices.
triomphe - Fork of std::sync::Arc with lots of utilities useful for FFI