{"id":33934875,"url":"https://github.com/mozilla/janus-plugin-rs","last_synced_at":"2025-12-12T14:00:37.834Z","repository":{"id":26329160,"uuid":"105322625","full_name":"mozilla/janus-plugin-rs","owner":"mozilla","description":"Rust crate for wrapping the Janus C plugin API, so you can build Janus plugins in Rust.","archived":false,"fork":false,"pushed_at":"2022-02-12T17:06:06.000Z","size":124,"stargazers_count":49,"open_issues_count":2,"forks_count":17,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-10-19T17:10:17.870Z","etag":null,"topics":["janus","janus-gateway"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mozilla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-29T22:35:28.000Z","updated_at":"2025-09-18T01:19:43.000Z","dependencies_parsed_at":"2022-07-27T08:02:11.715Z","dependency_job_id":null,"html_url":"https://github.com/mozilla/janus-plugin-rs","commit_stats":null,"previous_names":["mquander/janus-plugin-rs"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/mozilla/janus-plugin-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Fjanus-plugin-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Fjanus-plugin-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Fjanus-plugin-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Fjanus-plugin-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozilla","download_url":"https://codeload.github.com/mozilla/janus-plugin-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Fjanus-plugin-rs/sbom","scorecard":{"id":662209,"data":{"date":"2025-08-11","repo":{"name":"github.com/mozilla/janus-plugin-rs","commit":"448d86ab62ac1f6f7b4c7f03cd0cf867e128a74d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":1,"reason":"Found 2/13 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Mozilla Public License 2.0: 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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 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-21T16:32:11.424Z","repository_id":26329160,"created_at":"2025-08-21T16:32:11.424Z","updated_at":"2025-08-21T16:32:11.424Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27682760,"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":["janus","janus-gateway"],"created_at":"2025-12-12T14:00:17.961Z","updated_at":"2025-12-12T14:00:37.827Z","avatar_url":"https://github.com/mozilla.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# janus-plugin-rs\n\n[![Documentation](https://docs.rs/janus-plugin/badge.svg)](https://docs.rs/janus-plugin/)\n[![janus-plugin](https://img.shields.io/crates/v/janus-plugin.svg)](https://crates.io/crates/janus-plugin)\n\nLibrary for creating Rust plugins and event handlers for [Janus](https://janus.conf.meetecho.com/). Still moderately unstable.\n\n``` toml\n[dependencies]\njanus-plugin = \"0.13.0\"\n```\n\n## Compatibility\n\nCurrently compatible with Janus versions \u003e= 0.10.9; Janus makes breaking changes relatively frequently to\nthe plugin API, so expect this library to require updating and recompilation for plugins to continue to work with new\nJanus versions.\n\n## Building\n\nRequires the [Jansson](http://www.digip.org/jansson/) native library (Ubuntu: `libjansson-dev`) to link against; tested as compatible with versions \u003e= 2.5.\n\n```\n$ cargo build --all\n```\n\n## Testing\n\n```\n$ cargo test --all\n```\n\n## Basic usage\n\nJanus expects to dynamically link plugins as libraries and then call a `create` function on them to return a\n`janus_plugin` struct, which has a variety of function pointers that Janus will call when plugin-related events in the\ncore happen.\n\nThese bindings provide a `build_plugin!` macro that accepts as arguments plugin metadata and a set of (`extern C`) Rust\nfunctions, producing a Rust version of the `janus_plugin` struct, and an `export_plugin!` macro that defines the\n`create` function to return that struct. So to implement a plugin, you should write some handler functions, and then use\nthose macros like so:\n\n``` Rust\nuse std::os::raw::c_char;\n\n// helper macro for generating C-style strings from Rust string literals at compile time\nmacro_rules! c_str {\n    ($lit:expr) =\u003e {\n        unsafe {\n            std::ffi::CStr::from_ptr(concat!($lit, \"\\0\").as_ptr() as *const c_char)\n        }\n    }\n}\n\nextern \"C\" fn init(callbacks: *mut PluginCallbacks, config_path: *const c_char) -\u003e c_int {\n    janus_info!(\"Plugin loaded!\");\n    0\n}\n\nextern \"C\" fn destroy() {\n    janus_info!(\"Plugin destroyed!\");\n}\n\n// ...other handlers omitted: see\n// https://janus.conf.meetecho.com/docs/plugin_8h.html#details\n\nconst PLUGIN: Plugin = build_plugin!(\n    LibraryMetadata {\n        // The Janus plugin API version. The version compiled into the plugin\n        // must be identical to the version in the Janus which loads the plugin.\n        api_version: 15,\n        // Incrementing plugin version number for your own use.\n        version: 1,\n        // Human-readable metadata which Janus can query.\n        name: c_str!(\"My plugin name\"),\n        package: c_str!(\"My plugin package name\"),\n        version_str: c_str!(env!(\"CARGO_PKG_VERSION\")),\n        description: c_str!(env!(\"CARGO_PKG_DESCRIPTION\")),\n        author: c_str!(env!(\"CARGO_PKG_AUTHORS\")),\n    },\n    init,\n    destroy,\n    // ...other handlers omitted: see\n    // https://janus.conf.meetecho.com/docs/plugin_8h.html#details\n);\n\nexport_plugin!(\u0026PLUGIN);\n```\n\n## Examples\n\nHere are some projects which are using these bindings:\n\n* https://github.com/mozilla/janus-plugin-sfu\n* https://github.com/ivanovaleksey/janus-echotest-rs\n* https://github.com/netology-group/janus-conference/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozilla%2Fjanus-plugin-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozilla%2Fjanus-plugin-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozilla%2Fjanus-plugin-rs/lists"}