Ballasi / num2words

Convert numbers like 42 to forty-two
https://crates.io/crates/num2words
Apache License 2.0
17 stars 9 forks source link

Add no_std support #32

Open TTWNO opened 6 months ago

TTWNO commented 6 months ago

Hi there,

I'm working on a project to get an extremely minimal TTS working in Rust. As part of the requirements, my library needs to be #![no_std]. It'd be nice to take advantage of existing libraries; and yours is very easily adapted to no_std. This makes that simple change.

The only two future consideration are:

Thanks for putting in the hard work for this!

Ballasi commented 6 months ago

Hey, thanks for opening that PR!

I am relatively busy lately so I might take a bit of time to take a look and answer your PR (the other PR dates back from 1+ month which is completely horrendous...), even though it doesn't look that complicated.

Thanks for taking the time to participate in this project. I'll answer ASAP.

Laifsyn commented 5 months ago

I'm not in particular hurry since I was planning to see if I could change from a loop into an iterator Update: I couldn't make it work with an Iterator. (I wanted to reduce allocations mainly)

TTWNO commented 2 months ago

@Ballasi just checking in. No rush, I just had to use my git version of the project again for a no_std target and wanted to see if progress could be made regarding a review.