Crates.io | repunit |
lib.rs | repunit |
version | 0.1.6 |
source | src |
created_at | 2021-03-31 09:30:21.394769 |
updated_at | 2022-06-22 08:44:58.154612 |
description | Repunit Generation Library for Rust. |
homepage | |
repository | https://github.com/nsk-1010/rust-repunit |
max_upload_size | |
id | 376076 |
size | 6,551 |
日本語 | English |
---|
日本語版はこちらにあります
Repunit Generation Library
This crate is a library, so it can't be installed with cargo install
.
If you use this in your application, add these lines in Cargo.toml
:
[dependencies]
repunit = "0.1.6"
use repunit;
repunit::convert(digits)
repunit::restore(Repunit)
extern crate repunit;
fn main() {
println!("{}",repunit::convert(repunit::restore(111111)));
}
// => 111111
extern crate repunit;
fn main() {
println!("{}", 3 * repunit::convert(4));
}
// => 3333
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.
Bug reports and pull requests are welcome on GitHub at https://github.com/NSK-1010/rust-repunit.
The gem is available as open source under the terms of the MIT License.