Change cargo.toml and readme.md
This commit is contained in:
+6
-1
@@ -3,5 +3,10 @@ name = "ntext"
|
|||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
authors = ["Uttarayan Mondal <uttarayan21@gmail.com>"]
|
authors = ["Uttarayan Mondal <uttarayan21@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
description = "A rust library to write numbers as words"
|
||||||
|
readme = "README.md"
|
||||||
|
documentation = "https://uttarayan21.github.io/ntext-rs"
|
||||||
|
repository = "https://github.com/uttarayan21/ntext-rs"
|
||||||
|
license-file = "LICENSE"
|
||||||
|
publish = false
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
|
|||||||
@@ -20,12 +20,10 @@ extern crate ntext;
|
|||||||
use ntext::to_text;
|
use ntext::to_text;
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("{}",to_text!(12345));
|
println!("{}",to_text!(12345));
|
||||||
println!("{}",to_text!(12345," "));
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
which should output
|
which should output
|
||||||
`twelvethousandthreehundredfortyfive`
|
`twelvethousandthreehundredfortyfive`
|
||||||
`twelve thousand three hundred forty five`
|
|
||||||
|
|
||||||
I will probably add formatting the text later
|
Check the [documentation](https://uttarayan21.github.io/ntext-rs) which has more examples and is usually up to date.
|
||||||
|
|||||||
Reference in New Issue
Block a user