{"id":13460358,"url":"https://github.com/rust-num/num-bigint","last_synced_at":"2025-05-13T17:07:33.221Z","repository":{"id":27605348,"uuid":"114577229","full_name":"rust-num/num-bigint","owner":"rust-num","description":"Big integer types for Rust","archived":false,"fork":false,"pushed_at":"2025-01-25T00:27:10.000Z","size":2397,"stargazers_count":556,"open_issues_count":71,"forks_count":197,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-03T01:13:01.736Z","etag":null,"topics":["num-bigint","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rust-num.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-17T23:45:41.000Z","updated_at":"2025-04-19T11:54:24.000Z","dependencies_parsed_at":"2024-04-24T22:30:53.559Z","dependency_job_id":"7e1b3698-6b65-4b81-b760-0bb4d5012533","html_url":"https://github.com/rust-num/num-bigint","commit_stats":{"total_commits":1025,"total_committers":133,"mean_commits":7.706766917293233,"dds":0.5492682926829269,"last_synced_commit":"a25836ec6c341d1aa40c97335842f330b6a62911"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-num%2Fnum-bigint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-num%2Fnum-bigint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-num%2Fnum-bigint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-num%2Fnum-bigint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-num","download_url":"https://codeload.github.com/rust-num/num-bigint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253990466,"owners_count":21995774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["num-bigint","rust"],"created_at":"2024-07-31T10:00:40.368Z","updated_at":"2025-05-13T17:07:33.200Z","avatar_url":"https://github.com/rust-num.png","language":"Rust","funding_links":[],"categories":["Rust","语言资源库"],"sub_categories":["rust"],"readme":"# num-bigint\n\n[![crate](https://img.shields.io/crates/v/num-bigint.svg)](https://crates.io/crates/num-bigint)\n[![documentation](https://docs.rs/num-bigint/badge.svg)](https://docs.rs/num-bigint)\n[![minimum rustc 1.60](https://img.shields.io/badge/rustc-1.60+-red.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)\n[![build status](https://github.com/rust-num/num-bigint/workflows/master/badge.svg)](https://github.com/rust-num/num-bigint/actions)\n\nBig integer types for Rust, `BigInt` and `BigUint`.\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nnum-bigint = \"0.4\"\n```\n\n## Features\n\nThe `std` crate feature is enabled by default, and is mandatory before Rust\n1.36 and the stabilized `alloc` crate.  If you depend on `num-bigint` with\n`default-features = false`, you must manually enable the `std` feature yourself\nif your compiler is not new enough.\n\n### Random Generation\n\n`num-bigint` supports the generation of random big integers when the `rand`\nfeature is enabled. To enable it include rand as\n\n```toml\nrand = \"0.8\"\nnum-bigint = { version = \"0.4\", features = [\"rand\"] }\n```\n\nNote that you must use the version of `rand` that `num-bigint` is compatible\nwith: `0.8`.\n\n## Releases\n\nRelease notes are available in [RELEASES.md](RELEASES.md).\n\n## Compatibility\n\nThe `num-bigint` crate is tested for rustc 1.60 and greater.\n\n## Alternatives\n\nWhile `num-bigint` strives for good performance in pure Rust code, other\ncrates may offer better performance with different trade-offs.  The following\ntable offers a brief comparison to a few alternatives.\n\n| Crate             | License        | Min rustc | Implementation | Features |\n| :---------------  | :------------- | :-------- | :------------- | :------- |\n| **`num-bigint`**  | MIT/Apache-2.0 | 1.60      | pure rust | dynamic width, number theoretical functions |\n| [`awint`]         | MIT/Apache-2.0 | 1.66      | pure rust | fixed width, heap or stack, concatenation macros |\n| [`bnum`]          | MIT/Apache-2.0 | 1.65      | pure rust | fixed width, parity with Rust primitives including floats |\n| [`crypto-bigint`] | MIT/Apache-2.0 | 1.73      | pure rust | fixed width, stack only |\n| [`ibig`]          | MIT/Apache-2.0 | 1.49      | pure rust | dynamic width, number theoretical functions |\n| [`rug`]           | LGPL-3.0+      | 1.65      | bundles [GMP] via [`gmp-mpfr-sys`] | all the features of GMP, MPFR, and MPC |\n\n[`awint`]: https://crates.io/crates/awint\n[`bnum`]: https://crates.io/crates/bnum\n[`crypto-bigint`]: https://crates.io/crates/crypto-bigint\n[`ibig`]: https://crates.io/crates/ibig\n[`rug`]: https://crates.io/crates/rug\n\n[GMP]: https://gmplib.org/\n[`gmp-mpfr-sys`]: https://crates.io/crates/gmp-mpfr-sys\n\n## License\n\nLicensed under either of\n\n * [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)\n * [MIT license](http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-num%2Fnum-bigint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-num%2Fnum-bigint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-num%2Fnum-bigint/lists"}