diff --git a/Cargo.toml b/Cargo.toml index f9096b8..422ade8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,5 +3,10 @@ name = "ntext" version = "0.2.0" authors = ["Uttarayan Mondal "] 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] diff --git a/README.md b/README.md index 8b9228b..cd69790 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,10 @@ extern crate ntext; use ntext::to_text; fn main() { println!("{}",to_text!(12345)); - println!("{}",to_text!(12345," ")); } ``` which should output -`twelvethousandthreehundredfortyfive` -`twelve thousand three hundred forty five` +`twelvethousandthreehundredfortyfive` -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.