{"id":13478710,"url":"https://github.com/seanmonstar/num_cpus","last_synced_at":"2025-05-13T18:06:09.280Z","repository":{"id":28839331,"uuid":"32363061","full_name":"seanmonstar/num_cpus","owner":"seanmonstar","description":"Get the number of CPUs in Rust","archived":false,"fork":false,"pushed_at":"2025-01-29T14:41:27.000Z","size":98,"stargazers_count":600,"open_issues_count":33,"forks_count":93,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-03T00:03:08.724Z","etag":null,"topics":["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/seanmonstar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":"seanmonstar","patreon":"seanmonstar"}},"created_at":"2015-03-17T01:09:24.000Z","updated_at":"2025-04-26T05:11:58.000Z","dependencies_parsed_at":"2024-06-18T13:51:14.102Z","dependency_job_id":"aff5db2b-dd6b-4344-939b-b684d1364d12","html_url":"https://github.com/seanmonstar/num_cpus","commit_stats":{"total_commits":140,"total_committers":53,"mean_commits":2.641509433962264,"dds":0.7,"last_synced_commit":"b6ca8a475f746d2fbb12b8b17fa6e0dcc75c2c4e"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanmonstar%2Fnum_cpus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanmonstar%2Fnum_cpus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanmonstar%2Fnum_cpus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanmonstar%2Fnum_cpus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seanmonstar","download_url":"https://codeload.github.com/seanmonstar/num_cpus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253342280,"owners_count":21893557,"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":["rust"],"created_at":"2024-07-31T16:02:01.322Z","updated_at":"2025-05-13T18:06:09.256Z","avatar_url":"https://github.com/seanmonstar.png","language":"Rust","funding_links":["https://github.com/sponsors/seanmonstar","https://patreon.com/seanmonstar"],"categories":["Rust"],"sub_categories":[],"readme":"# num_cpus\n\n[![crates.io](https://img.shields.io/crates/v/num_cpus.svg)](https://crates.io/crates/num_cpus)\n[![CI Status](https://github.com/seanmonstar/num_cpus/actions/workflows/ci.yml/badge.svg)](https://github.com/seanmonstar/num_cpus/actions)\n\n- [Documentation](https://docs.rs/num_cpus)\n- [CHANGELOG](CHANGELOG.md)\n\nCount the number of CPUs on the current machine.\n\n## Usage\n\nAdd to Cargo.toml:\n\n```toml\n[dependencies]\nnum_cpus = \"1.0\"\n```\n\nIn your `main.rs` or `lib.rs`:\n\n```rust\nextern crate num_cpus;\n\n// count logical cores this process could try to use\nlet num = num_cpus::get();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanmonstar%2Fnum_cpus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseanmonstar%2Fnum_cpus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanmonstar%2Fnum_cpus/lists"}