{"id":33941734,"url":"https://github.com/johalun/sysctl-rs","last_synced_at":"2025-12-12T16:49:45.715Z","repository":{"id":20734250,"uuid":"90758413","full_name":"johalun/sysctl-rs","owner":"johalun","description":"A simplified Rust interface to the sysctl system call","archived":false,"fork":false,"pushed_at":"2025-09-17T22:48:28.000Z","size":2551,"stargazers_count":52,"open_issues_count":7,"forks_count":24,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-10-08T23:35:14.000Z","etag":null,"topics":["freebsd","macos","rust","sysctl"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johalun.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-MIT","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-05-09T14:55:32.000Z","updated_at":"2025-09-17T22:48:30.000Z","dependencies_parsed_at":"2024-06-19T01:25:15.187Z","dependency_job_id":"e0502b2c-35dc-4811-876a-66d4c3482cca","html_url":"https://github.com/johalun/sysctl-rs","commit_stats":{"total_commits":127,"total_committers":13,"mean_commits":9.76923076923077,"dds":0.5511811023622047,"last_synced_commit":"508acab1b4572784aae9ac0666d3c9a054bc0560"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/johalun/sysctl-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johalun%2Fsysctl-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johalun%2Fsysctl-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johalun%2Fsysctl-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johalun%2Fsysctl-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johalun","download_url":"https://codeload.github.com/johalun/sysctl-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johalun%2Fsysctl-rs/sbom","scorecard":{"id":527720,"data":{"date":"2025-08-11","repo":{"name":"github.com/johalun/sysctl-rs","commit":"c21917246d825b260ca0490e311df9de4252a9a1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":5,"reason":"Found 12/24 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-MIT:0","Info: FSF or OSI recognized license: MIT License: LICENSE-MIT:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T04:53:16.198Z","repository_id":20734250,"created_at":"2025-08-20T04:53:16.203Z","updated_at":"2025-08-20T04:53:16.203Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27686504,"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","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["freebsd","macos","rust","sysctl"],"created_at":"2025-12-12T16:49:45.197Z","updated_at":"2025-12-12T16:49:45.706Z","avatar_url":"https://github.com/johalun.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"This crate provides a safe interface for reading and writing information to the kernel using the sysctl interface.\n\n[![Build Status](https://api.cirrus-ci.com/github/johalun/sysctl-rs.svg)](https://cirrus-ci.com/github/johalun/sysctl-rs/master)\n\n[![Current Version](https://img.shields.io/crates/v/sysctl.svg)](https://crates.io/crates/sysctl)\n\n\n*FreeBSD, Linux, macOS, iOS, tvOS, and visionOS are supported.*\n*Contributions for improvements and other platforms are welcome.*\n\n### Documentation\n\nDocumentation is available on [docs.rs](https://docs.rs/sysctl)\n\n### Usage\n\nAdd to `Cargo.toml`\n\n```toml\n[dependencies]\nsysctl = \"*\"\n```\n\n### macOS/iOS\n\n* Due to limitations in the sysctl(3) API, many of the methods of\n  the `Ctl` take a mutable reference to `self` on macOS/iOS.\n* Sysctl descriptions are not available on macOS/iOS and Linux.\n* Some tests failures are ignored, as the respective sysctls do not\n  exist on macos.\n\n### Example\n\nsysctl comes with several examples, see the examples folder:\n\n* `value.rs`: shows how to get a sysctl value\n* `value_as.rs`: parsing values as structures\n* `value_string.rs`: parsing values as string. Use this for cross platform compatibility since all sysctls are strings on Linux.\n* `value_oid_as.rs`: getting a sysctl from OID constants from the `libc` crate.\n* `set_value.rs`: shows how to set a sysctl value\n* `struct.rs`: reading data into a struct\n* `temperature.rs`: parsing temperatures\n* `iterate.rs`: showcases iteration over the sysctl tree\n\nRun with:\n\n```sh\n$ cargo run --example iterate\n```\n\nOr to use in your program:\n\n```rust\nextern crate sysctl;\nuse sysctl::Sysctl;\n\nfn main() {\n    let ctl = sysctl::Ctl::new(\"kern.osrevision\").unwrap();\n    println!(\"Description: {}\", ctl.description().unwrap());\n    println!(\"Value: {}\", ctl.value_string().unwrap());\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohalun%2Fsysctl-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohalun%2Fsysctl-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohalun%2Fsysctl-rs/lists"}