{"id":13532072,"url":"https://github.com/rust-num/num","last_synced_at":"2025-12-17T03:43:20.089Z","repository":{"id":20823175,"uuid":"24108987","full_name":"rust-num/num","owner":"rust-num","description":"A collection of numeric types and traits for Rust.","archived":false,"fork":false,"pushed_at":"2025-01-25T00:58:08.000Z","size":4823,"stargazers_count":1114,"open_issues_count":23,"forks_count":149,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-05-01T15:53:53.472Z","etag":null,"topics":["num","number","numeric-types","rust","trait"],"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":"2014-09-16T17:02:02.000Z","updated_at":"2025-04-29T19:49:34.000Z","dependencies_parsed_at":"2025-02-05T19:44:47.018Z","dependency_job_id":"996b91eb-0126-4719-8b36-1a50ce1ff06a","html_url":"https://github.com/rust-num/num","commit_stats":{"total_commits":599,"total_committers":86,"mean_commits":6.965116279069767,"dds":0.6327212020033389,"last_synced_commit":"1fec8524c4eaa27cbdf4bb3eb46782d2ff40b2ed"},"previous_names":[],"tags_count":79,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-num%2Fnum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-num%2Fnum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-num%2Fnum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-num%2Fnum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-num","download_url":"https://codeload.github.com/rust-num/num/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253747326,"owners_count":21957741,"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","number","numeric-types","rust","trait"],"created_at":"2024-08-01T07:01:08.000Z","updated_at":"2025-12-17T03:43:15.039Z","avatar_url":"https://github.com/rust-num.png","language":"Rust","readme":"# num\n\n[![crate](https://img.shields.io/crates/v/num.svg)](https://crates.io/crates/num)\n[![documentation](https://docs.rs/num/badge.svg)](https://docs.rs/num)\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/workflows/master/badge.svg)](https://github.com/rust-num/num/actions)\n\nA collection of numeric types and traits for Rust.\n\nThis includes new types for big integers, rationals (aka fractions), and complex numbers,\nnew traits for generic programming on numeric properties like `Integer`,\nand generic range iterators.\n\n`num` is a meta-crate, re-exporting items from these sub-crates:\n\n| Repository | Crate | Documentation |\n| ---------- | ----- | ------------- |\n| [`num-bigint`]   | [![crate][bigint-cb]][bigint-c]     | [![documentation][bigint-db]][bigint-d]\n| [`num-complex`]  | [![crate][complex-cb]][complex-c]   | [![documentation][complex-db]][complex-d]\n| [`num-integer`]  | [![crate][integer-cb]][integer-c]   | [![documentation][integer-db]][integer-d]\n| [`num-iter`]     | [![crate][iter-cb]][iter-c]         | [![documentation][iter-db]][iter-d]\n| [`num-rational`] | [![crate][rational-cb]][rational-c] | [![documentation][rational-db]][rational-d]\n| [`num-traits`]   | [![crate][traits-cb]][traits-c]     | [![documentation][traits-db]][traits-d]\n| ([`num-derive`]) | [![crate][derive-cb]][derive-c]     | [![documentation][derive-db]][derive-d]\n\nNote: `num-derive` is listed here for reference, but it's not directly included\nin `num`.  This is a `proc-macro` crate for deriving some of `num`'s traits.\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nnum = \"0.4\"\n```\n\n## Features\n\nThis crate can be used without the standard library (`#![no_std]`) by disabling\nthe default `std` feature. Use this in `Cargo.toml`:\n\n```toml\n[dependencies.num]\nversion = \"0.4\"\ndefault-features = false\n```\n\nThe `num-bigint` crate requires the `std` feature, or the `alloc` feature may\nbe used instead with Rust 1.36 and later. Other sub-crates may also have\nlimited functionality when used without `std`.\n\nThe `libm` feature uses pure-Rust floating point implementations in `no_std`\nbuilds, enabling the `Float` trait and related `Complex` methods.\n\nThe `rand` feature enables randomization traits in `num-bigint` and\n`num-complex`.\n\nThe `serde` feature enables serialization for types in `num-bigint`,\n`num-complex`, and `num-rational`.\n\nThe `num` meta-crate no longer supports features to toggle the inclusion of\nthe individual sub-crates.  If you need such control, you are recommended to\ndirectly depend on your required crates instead.\n\n## Releases\n\nRelease notes are available in [RELEASES.md](RELEASES.md).\n\n## Compatibility\n\nThe `num` crate as a whole is tested for rustc 1.60 and greater.\n\nThe `num-traits`, `num-integer`, and `num-iter` crates are individually tested\nfor rustc 1.8 and greater, if you require such older compatibility.\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\n\n[`num-bigint`]: https://github.com/rust-num/num-bigint\n[bigint-c]: https://crates.io/crates/num-bigint\n[bigint-cb]: https://img.shields.io/crates/v/num-bigint.svg\n[bigint-d]: https://docs.rs/num-bigint/\n[bigint-db]: https://docs.rs/num-bigint/badge.svg\n\n[`num-complex`]: https://github.com/rust-num/num-complex\n[complex-c]: https://crates.io/crates/num-complex\n[complex-cb]: https://img.shields.io/crates/v/num-complex.svg\n[complex-d]: https://docs.rs/num-complex/\n[complex-db]: https://docs.rs/num-complex/badge.svg\n\n[`num-derive`]: https://github.com/rust-num/num-derive\n[derive-c]: https://crates.io/crates/num-derive\n[derive-cb]: https://img.shields.io/crates/v/num-derive.svg\n[derive-d]: https://docs.rs/num-derive/\n[derive-db]: https://docs.rs/num-derive/badge.svg\n\n[`num-integer`]: https://github.com/rust-num/num-integer\n[integer-c]: https://crates.io/crates/num-integer\n[integer-cb]: https://img.shields.io/crates/v/num-integer.svg\n[integer-d]: https://docs.rs/num-integer/\n[integer-db]: https://docs.rs/num-integer/badge.svg\n\n[`num-iter`]: https://github.com/rust-num/num-iter\n[iter-c]: https://crates.io/crates/num-iter\n[iter-cb]: https://img.shields.io/crates/v/num-iter.svg\n[iter-d]: https://docs.rs/num-iter/\n[iter-db]: https://docs.rs/num-iter/badge.svg\n\n[`num-rational`]: https://github.com/rust-num/num-rational\n[rational-c]: https://crates.io/crates/num-rational\n[rational-cb]: https://img.shields.io/crates/v/num-rational.svg\n[rational-d]: https://docs.rs/num-rational/\n[rational-db]: https://docs.rs/num-rational/badge.svg\n\n[`num-traits`]: https://github.com/rust-num/num-traits\n[traits-c]: https://crates.io/crates/num-traits\n[traits-cb]: https://img.shields.io/crates/v/num-traits.svg\n[traits-d]: https://docs.rs/num-traits/\n[traits-db]: https://docs.rs/num-traits/badge.svg\n","funding_links":[],"categories":["Cryptography","Rust"],"sub_categories":["Theorem"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-num%2Fnum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-num%2Fnum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-num%2Fnum/lists"}