{"id":16611185,"url":"https://github.com/mitsuhiko/unix-ipc","last_synced_at":"2025-10-25T02:05:48.007Z","repository":{"id":44615928,"uuid":"243956727","full_name":"mitsuhiko/unix-ipc","owner":"mitsuhiko","description":"A super minimal wrapper around unix sockets for IPC.","archived":false,"fork":false,"pushed_at":"2021-12-17T13:39:54.000Z","size":64,"stargazers_count":39,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-23T21:23:46.906Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitsuhiko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-29T11:30:41.000Z","updated_at":"2025-08-26T22:39:01.000Z","dependencies_parsed_at":"2022-09-13T15:11:42.930Z","dependency_job_id":null,"html_url":"https://github.com/mitsuhiko/unix-ipc","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mitsuhiko/unix-ipc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Funix-ipc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Funix-ipc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Funix-ipc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Funix-ipc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitsuhiko","download_url":"https://codeload.github.com/mitsuhiko/unix-ipc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Funix-ipc/sbom","scorecard":{"id":650571,"data":{"date":"2025-08-11","repo":{"name":"github.com/mitsuhiko/unix-ipc","commit":"61015ca376297dbb594c501a9121656d6b7b9a8a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/clippy.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/mitsuhiko/unix-ipc/clippy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rustfmt.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/mitsuhiko/unix-ipc/rustfmt.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/mitsuhiko/unix-ipc/tests.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned"],"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":"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":"Maintained","score":0,"reason":"0 commit(s) and 0 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":"Code-Review","score":0,"reason":"Found 2/28 approved changesets -- score normalized to 0","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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/clippy.yml:1","Warn: no topLevel permission defined: .github/workflows/rustfmt.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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 4 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-21T13:24:59.115Z","repository_id":44615928,"created_at":"2025-08-21T13:24:59.115Z","updated_at":"2025-08-21T13:24:59.115Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280893614,"owners_count":26409280,"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-10-25T02:00:06.499Z","response_time":81,"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":[],"created_at":"2024-10-12T01:35:47.320Z","updated_at":"2025-10-25T02:05:47.978Z","avatar_url":"https://github.com/mitsuhiko.png","language":"Rust","readme":"# unix-ipc\n\nThis crate implements a minimal abstraction over UNIX domain sockets for\nthe purpose of IPC.  It lets you send both file handles and rust objects\nbetween processes.\n\n## How it works\n\nThis uses [serde](https://serde.rs/) to serialize data over unix sockets\nvia [bincode](https://github.com/servo/bincode).  Thanks to the\n[`Handle`](https://docs.rs/unix-ipc/latest/unix_ipc/struct.Handle.html)\nabstraction you can also send any object across that is convertable into a unix\nfile handle.\n\nThe way this works under the hood is that during serialization and\ndeserialization encountered file descriptors are tracked.  They are then\nsent over the unix socket separately.  This lets unassociated processes\nshare file handles.\n\nIf you only want the unix socket abstraction you can disable all default\nfeatures and use the raw channels.\n\n## Example\n\n```rust\nuse std::env;\nuse std::process;\nuse unix_ipc::{channel, Bootstrapper, Receiver, Sender};\nuse serde::{Deserialize, Serialize};\n\nconst ENV_VAR: \u0026str = \"PROC_CONNECT_TO\";\n\n#[derive(Serialize, Deserialize, Debug)]\npub enum Task {\n    Sum(Vec\u003ci64\u003e, Sender\u003ci64\u003e),\n    Shutdown,\n}\n\nif let Ok(path) = env::var(ENV_VAR) {\n    let receiver = Receiver::\u003cTask\u003e::connect(path).unwrap();\n    loop {\n        match receiver.recv().unwrap() {\n            Task::Sum(values, tx) =\u003e {\n                tx.send(values.into_iter().sum::\u003ci64\u003e()).unwrap();\n            }\n            Task::Shutdown =\u003e break,\n        }\n    }\n} else {\n    let bootstrapper = Bootstrapper::new().unwrap();\n    let mut child = process::Command::new(env::current_exe().unwrap())\n        .env(ENV_VAR, bootstrapper.path())\n        .spawn()\n        .unwrap();\n\n    let (tx, rx) = channel().unwrap();\n    bootstrapper.send(Task::Sum(vec![23, 42], tx)).unwrap();\n    println!(\"sum: {}\", rx.recv().unwrap());\n    bootstrapper.send(Task::Shutdown).unwrap();\n}\n```\n\nLicense: MIT/Apache-2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitsuhiko%2Funix-ipc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitsuhiko%2Funix-ipc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitsuhiko%2Funix-ipc/lists"}