File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11[package ]
22edition = " 2021"
33name = " trid"
4- version = " 2 .0.0"
4+ version = " 3 .0.0"
55description = " Turkish citizenship ID number type"
66readme = " README.md"
77homepage = " https://github.com/ssg/trid"
Original file line number Diff line number Diff line change 22[ ![ Build & Test] ( https://github.com/ssg/trid/actions/workflows/rust.yml/badge.svg )] ( https://github.com/ssg/trid/actions/workflows/rust.yml )
33
44# trid - Turkish Citizenship ID Number crate
5- This is my first ever written Rust code derived from my own [ TurkishId] ( https://github.com/ssg/TurkishId )
6- package for .NET. I'm trying to use existing code as an excuse to learn about Rust. Despite constant tackling
5+
6+ This is my first ever written Rust code derived from my own [ TurkishId] ( https://github.com/ssg/TurkishId )
7+ package for .NET. I'm trying to use existing code as an excuse to learn about Rust. Despite constant tackling
78with error messages, Rust has been extremely impressive so far. (How cool are doc-tests!?)
89
910# Usage
10- The crate provides ` TurkishId ` type that represents a valid Turkish ID number. It can be instantiated
11+
12+ The crate provides ` TurkishId ` type that represents a valid Turkish ID number. It can be instantiated
1113from a string using its ` parse() ` method, or directly converted from a ` u8 ` slice using ` from() ` or
1214` try_from() ` methods. The type guarantess that it never contains an invalid number, so there's no need
1315to validate a ` TurkishId ` type.
@@ -33,4 +35,5 @@ let id : TurkishId = "12345678901".parse()?;
3335```
3436
3537# License
38+
3639Apache License Version 2.0, see LICENSE file for details.
You can’t perform that action at this time.
0 commit comments