Repunit
日本語版はこちらにあります
Repunit Generation Library
Installation
$ cargo install --git "https://github.com/nsk-1010/rust-repunit.git" --tag "v0.1.0"
If you use this in your application, add these lines in Cargo.toml:
repunit =
Usage
First step
extern crate repunit;
Convert from number of digits in Repunit to Repunit
convert
Restore from Repunit to number of digits in Repunit
restore
example
extern crate repunit;
// => 111111
extern crate repunit;
// => 3333
Development
To install this library onto your local machine, run cargo install --path .. To release a new version, update the version number in Cargo.toml, and then run cargo build --release, which will create a git tag for the version, push git commits and the created tag.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/NSK-1010/rust-repunit.
License
The gem is available as open source under the terms of the MIT License.