-
TurkishIdError
is renamed toError
to conform to Rust semantics. Perhaps, I shouldn't have been so hesitant to make this package 1.0.0, huh :) -
Added
from_seq()
method that can generate a valid TurkishId from a given sequence number.
-
Removed
TryFrom
impls for&Bytes
and&[u8]
types. The only conversion is possible from&str
now. Changed the validation to use&str
instead of&[u8]
. The main reason I made this change is that it makes no sense to convert from a ASCII-encoded&[u8]
not have it as&str
. The conversion can alerady be done withfrom_utf8()
, no need to repeat it there. -
Removed
Display
impl fromTurkishIdError
completely as derivingDebug
already does it. This might mean that any code that relies on the fmt output ofTurkishIdError
might break.
- Fixed build break caused by inline source comments.
- Avoid panic in
Display
impl completely. The code is completely panic-free now.
- Now works without std (
no_std
-enabled), so feel free to use this in your favorite microcontroller :)
- Due to
no_std
,Error
trait isn't supported byTurkishIdError
anymore
- Implements
TryFrom
instead ofFrom
- Faster validation
First stable release