{"id":16864720,"url":"https://github.com/38/plumber-rs","last_synced_at":"2026-05-18T08:31:58.276Z","repository":{"id":57656469,"uuid":"144232994","full_name":"38/plumber-rs","owner":"38","description":"The Rust Supporting Library for Plumber General Purpose dataflow Framework","archived":false,"fork":false,"pushed_at":"2018-10-12T16:43:51.000Z","size":245,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T22:39:43.528Z","etag":null,"topics":["dataflow-programming","plumber","rust-lang","rust-server"],"latest_commit_sha":null,"homepage":"https://plumberserver.com/index.html#plumber_rs_docs/plumber_rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/38.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-10T03:38:22.000Z","updated_at":"2018-10-12T16:43:53.000Z","dependencies_parsed_at":"2022-08-26T05:51:42.340Z","dependency_job_id":null,"html_url":"https://github.com/38/plumber-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/38/plumber-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fplumber-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fplumber-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fplumber-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fplumber-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/38","download_url":"https://codeload.github.com/38/plumber-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fplumber-rs/sbom","scorecard":{"id":3318,"data":{"date":"2025-08-11","repo":{"name":"github.com/38/plumber-rs","commit":"2183f6ed3fc0e5e2efe38298830972ab51f6da30"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 2-Clause \"Simplified\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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"}}]},"last_synced_at":"2025-08-14T13:02:09.509Z","repository_id":57656469,"created_at":"2025-08-14T13:02:09.509Z","updated_at":"2025-08-14T13:02:09.509Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33170830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dataflow-programming","plumber","rust-lang","rust-server"],"created_at":"2024-10-13T14:43:38.720Z","updated_at":"2026-05-18T08:31:58.255Z","avatar_url":"https://github.com/38.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plumber-rs\n\nThis is the Rust library that provides the connection between [Plumber Dataflow Framework](https://github.com/38/plumber)\nand the Rust Programming language.\n\nWith this library, the servlet can be written in Rust programming language. \nUnlike C and C++, the Rust servlet needs a runtime environment, which can be setup with the Rust Servlet Loader `language/rust`.\n\n## How to build a Rust servlet\n\nWith Cargo you should be able to create a servlet with Rust quite easily.\n\n**Step 1** you should create a library crate with cargo\n\n```\ncargo init hello-rust --lib\n```\n\n**Step 2** we should change the `Cargo.toml`. \n\nWe need to make sure the cargo can produce a dynamic library that can be loaded by Plumber Rust Servlet Loader.\nAlso, we need to add some depdendencies to the crate.\n\n```\n[lib]\nname = \"hello-rust\"\ncrate-type= [\"cdylib\"]\n\n[dependencies]\nplumber-rs = {git = \"https://github.com/38/plumber-rs.git\"}\n```\n\n**Step 3** Create the servlet object.\n\nIn Rust, a servlet is actually a trait. For the sync servlet, we can implemnet the trait `plumber_rs::servlet::sync_servlet`.\n\n```rust\nuse plumber_rs::servlet::{SyncServlet, Unimplemented, ServletMode, ServletFuncResult, Bootstrap, success, fail};\nuse plumber_rs::protocol::{ProtocolModel, Untyped};\n\nstruct HelloServlet {}\n\nimpl SyncServlet for HelloServlet {\n    no_protocol!();\n    fn init(\u0026mut self, _args:\u0026[\u0026str], _model:\u0026mut Self::ProtocolType) -\u003e ServletFuncResult \n    {\n        plumber_log!(N \"Hello World\");\n        return success();\n    }\n    fn exec(\u0026mut self, _ti:TypeInstanceObject) -\u003e ServletFuncResult  { success(); }\n    fn cleanup(\u0026mut self) -\u003e ServletFuncResult { success(); }\n}\n\n```\n\n**Step 4** Create the bootstrap type and export the entry point\n\n```rust\nstruct BootstrapType{}\n\nimpl Bootstrap for BootstrapType {\n    type SyncServletType = HelloServlet;\n    type AsyncServletType = Unimplemented;\n    fn get(_args:\u0026[\u0026str]) -\u003e BootstrapResult\u003cSelf\u003e\n    {\n        return Self::make_sync(HelloServlet{});\n    }\n}\n\nexport_bootstrap!(BootstrapType);\n```\n\n**Step 5** Build the servlet\n\nTo build the servlet successfully you should have Plumber installed. See the plumber install instruction at [here](https://plumberserver.com/index.html#documentation.compile).\n\nIf you have Plumber installed under the `/`, `/usr/`, `/usr/local` or your home directory, you should be able to compile the servlet successfully.\nIf you have some other install path, please specify the environment root with `ENVROOT` envrionment variable.\n\nAnd to build the servlet, you can simple run `cargo build`\n\n```bash\ncargo build\n```\n\n# Full Servlet Code\n\n```rust\n#[macro_use]\nextern crate plumber_rs;\nextern crate libc;\n\nuse plumber_rs::servlet::{SyncServlet, Unimplemented, ServletFuncResult, Bootstrap, BootstrapResult, sucess, fail};\nuse plumber_rs::protocol::{ProtocolModel, Untyped};\n\nstruct HelloServlet {}\n\nimpl SyncServlet for HelloServlet {\n    no_protocol!();\n    fn init(\u0026mut self, _args:\u0026[\u0026str], _model:\u0026mut Self::ProtocolType) -\u003e ServletFuncResult \n    {\n        plumber_log!(N \"Hello World\");\n        return sucess();\n    }\n    fn exec(\u0026mut self, _model:Self::DataModelType) -\u003e ServletFuncResult  { sucess() }\n    fn cleanup(\u0026mut self) -\u003e ServletFuncResult { sucess() }\n}\n\nstruct BootstrapType{}\n\nimpl Bootstrap for BootstrapType {\n    type SyncServletType = HelloServlet;\n    type AsyncServletType = Unimplemented;\n    fn get(_args:\u0026[\u0026str]) -\u003e BootstrapResult\n    {\n        return Self::make_sync(HelloServlet{});\n    }\n}\n\nexport_bootstrap!(BootstrapType);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F38%2Fplumber-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F38%2Fplumber-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F38%2Fplumber-rs/lists"}