owning-ref-unsoundness
An article explaining the unsoundness I found in owning-ref (by noamtashma)
string
Rust String type with configurable byte storage. (by carllerche)
owning-ref-unsoundness | string | |
---|---|---|
2 | 1 | |
26 | 32 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | 5 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.
owning-ref-unsoundness
Posts with mentions or reviews of owning-ref-unsoundness.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-26.
string
Posts with mentions or reviews of string.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-26.
-
Unsoundness in owning_ref
If they do need to be string slices, you could wrap bytes::Bytes inside String from the string crate. Parsing generally results in a bunch of &strs borrowed from the String, and you'll want the slice_ref method added by this PR to turn the slices back into unborrowed String instances efficiently (no copying or UTF-8 checking, just incrementing an atomic reference counter).
What are some alternatives?
When comparing owning-ref-unsoundness and string you can also consider the following projects:
owning-ref-rs - A library for creating references that carry their owner with them.
once_self_cell - Safe-to-use proc-macro-free self-referential structs in stable Rust.
escher - Self-referencial structs using the async/await transformation
fluent.js - JavaScript implementation of Project Fluent
advisory-db - Security advisory database for Rust crates published through crates.io