Skip to content

Commit

Permalink
open pr: number_to_words
Browse files Browse the repository at this point in the history
  • Loading branch information
ali77gh committed Dec 17, 2023
1 parent adbfa24 commit 7fffb6a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ full = [
"url-fix",
"verity-card-number",
"phone-number",
"number-to-words",
]
add-ordinal-suffix = []
commas = []
Expand All @@ -50,6 +51,7 @@ url-fix = ["dep:urlencoding"]
verity-card-number = []
phone-number = []
serde = ["dep:serde"]
number-to-words = []

[package.metadata.docs.rs]
all-features = true
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,8 @@ phone-number:
@ ls -sh target/debug/*.rlib
cargo build --no-default-features --features="phone-number serde"
@ ls -sh target/debug/*.rlib

number-to-words:
@ echo ""
cargo build --no-default-features --features=number-to-words
@ ls -sh target/debug/*.rlib
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Rust version of Persian Tools
- [x] isPersian
- [ ] legalId
- [x] nationalId
- [ ] numberToWords
- [-] numberToWords
- [ ] numberplate
- [x] phoneNumber
- [ ] remainingTime
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ pub mod verity_card_number;

#[cfg(feature = "phone-number")]
pub mod phone_number;

#[cfg(feature = "number-to-words")]
pub mod number_to_words;
8 changes: 8 additions & 0 deletions src/number_to_words/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#[cfg(test)]
mod tests {

#[test]
fn number_to_word_test() {
assert_eq!(1, 1);
}
}

0 comments on commit 7fffb6a

Please sign in to comment.