BurntSushi / memchr

Optimized string search routines for Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: no-std + alloc

VorpalBlade opened this issue · comments

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.

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

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).

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.)