arcstr
arcstr copied to clipboard
Better reference counted strings for Rust
I am getting the following clippy warning when using const ArcStr literals. IMO these warnings are harmless. It's probably a good idea to silence such warnings in `arcstr::literal` macro. ```rust...
With the release of rust-lang/cargo#13913 (in nightly-2024-05-19), Cargo has now gain the ability to declare `--check-cfg` args directly inside the `[lints]` table with [`[lints.rust.unexpected_cfgs.check-cfg]`](https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html#check-cfg-in-lintsrust-table)[^1]: `Cargo.toml`: ```toml [lints.rust] unexpected_cfgs = {...
Unlike `Arc`, we know exactly which type we `Deref` to, so there's no reason to be paranoid about inherent methods -- unless they're likely to collide with `&str` methods, we...
Crate: . Support can be enabled via a feature. What it takes a simple derive. Maybe I can do that later. As a temporary fix, I did ``` // We...
In this license file : https://github.com/thomcc/arcstr/blob/main/LICENSE-APACHE#L189 It says "Copyright 2016 The Miri Developers", is that a copy-paste error, or should they be credited?
`ArcStr::init_with_unchecked(0, |_| ())` panics, but the documentation doesn't mention this case. I'd suggest updating the documentation or avoiding the panic.