rodrimati1992 / tstr_crates

Type-level strings
zlib License
9 stars 1 forks source link

Add a note that the const_generics feature requires a nightly compiler. #6

Closed nwalfield closed 7 months ago

nwalfield commented 7 months ago

See https://github.com/rodrimati1992/tstr_crates/issues/5

rodrimati1992 commented 7 months ago

tstr with only the "const_generics" feature enabled doesn't compile in the current nightly compiler, it's there for a future release where &'static str const parameters are stabilized.

You could mention that the feature is unusable in this date though, since &'static str const parameters aren't stable. Also, that the "nightly_const_generics" feature is an alternative that works in the nightly compiler.

nwalfield commented 7 months ago

Thanks. I don't feel I sufficiently understand how these features work to document them. I'll leave that to you, or feel free to close this MR. Thanks for working on tstr, and following up with me!

rodrimati1992 commented 7 months ago

I made my own PR attempting to clarify what the "const_generics" feature is/does, I'll wait for your opinion before merging that PR.

nwalfield commented 7 months ago

That's much easier to understand, thanks!