factordb-rust
Rust wrapper for FactorDB API.
Includes a library as well as a simple command line app.
Command line app
Installation
cargo install factordb --all-features
Building from source
git clone https://github.com/megascrapper/factordb-rust
cd factordb-rust
cargo build --all-features
Command line usage
Rust wrapper for FactorDB API
Usage: factordb [OPTIONS] <NUMBER>
Arguments:
<NUMBER> Number to find its factor
Options:
--unique Print unique factors on each line
--json Print JSON output of FactorDB API
-h, --help Print help
-V, --version Print version
Library
Add dependency
cargo add factordb
Library usage example
use Error;
use FactorDbClient;
use BigInt; // All numeric values in the result object are of this type
async
Documentation
https://docs.rs/factordb/latest/factordb/
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.