BurntSushi / memchr

Optimized string search routines for Rust.
The Unlicense
799 stars 97 forks source link

Feature request: no-std + alloc #121

Closed VorpalBlade closed 1 year ago

VorpalBlade commented 1 year ago

I was looking through the code of this crate. I have a need for something like this on a no-std + alloc target, but it seems several features (such as using Cow from alloc) are missing. That should be possible to support.

BurntSushi commented 1 year ago

Can you say specifically what features you need? And also why you can't enable std?

VorpalBlade commented 1 year ago

First: See my comment in issue #122.

Second: It is probable I could make do without Cow (my primary issue was #122, I just discovered this as well while investigating how difficult the limitations were and thought it would be nice to improve the API).

BurntSushi commented 1 year ago

Aye. Yes, this is definitely something we should do.

I believe the only API that's added with alloc is Finder::into_owned.

(I don't think there is any Cow in the public API of this crate, FWIW.)