mailparse icon indicating copy to clipboard operation
mailparse copied to clipboard

Support `no_std` feature

Open zzhengzhuo opened this issue 4 years ago • 4 comments

Is there any plan to support no_std feature?

zzhengzhuo avatar Nov 24 '21 01:11 zzhengzhuo

It's not something I have considered. If it's not a lot of work I wouldn't be opposed to it though.

staktrace avatar Nov 24 '21 02:11 staktrace

mailparse depends on three crates:

  • base64 which support no_std
  • staktrace/quoted-printable#9 for quoted-printabl
  • hsivonen/charset seems not updated from 2 years ago.

Is there any crate instead or use hsivonen/encoding_rs directly?

zzhengzhuo avatar Nov 25 '21 03:11 zzhengzhuo

I don't think there's any real alternative to use instead of charset. I used to use encoding_rs but conceptually it is a little different and hsivonen submitted https://github.com/staktrace/mailparse/pull/32 to migrate to charset. If charset doesn't support no_std you'd have to make that happen first, I guess.

staktrace avatar Nov 25 '21 12:11 staktrace

I can submit a pr hsivonen/charset#5 for charset,but I don't know whether it will accept.

zzhengzhuo avatar Nov 25 '21 13:11 zzhengzhuo

Closing for now. Feel free to reopen if you get the charset PR merged.

staktrace avatar Dec 04 '22 16:12 staktrace