{"id":26508627,"url":"https://github.com/rodaine/protoc-gen-visibility","last_synced_at":"2025-03-21T00:37:11.533Z","repository":{"id":151543745,"uuid":"588388222","full_name":"rodaine/protoc-gen-visibility","owner":"rodaine","description":"Cascading visibility rules for protobufs","archived":false,"fork":false,"pushed_at":"2025-03-14T15:59:17.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T16:41:49.469Z","etag":null,"topics":["buf","protoc","protoc-plugin","protocol-buffers"],"latest_commit_sha":null,"homepage":"","language":"Go","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/rodaine.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-13T01:52:22.000Z","updated_at":"2025-03-14T15:59:15.000Z","dependencies_parsed_at":"2024-06-21T05:25:50.584Z","dependency_job_id":"00d14c03-3553-4b11-8dbf-ba9cab70134d","html_url":"https://github.com/rodaine/protoc-gen-visibility","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodaine%2Fprotoc-gen-visibility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodaine%2Fprotoc-gen-visibility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodaine%2Fprotoc-gen-visibility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodaine%2Fprotoc-gen-visibility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodaine","download_url":"https://codeload.github.com/rodaine/protoc-gen-visibility/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244717385,"owners_count":20498284,"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":["buf","protoc","protoc-plugin","protocol-buffers"],"created_at":"2025-03-21T00:37:11.009Z","updated_at":"2025-03-21T00:37:11.525Z","avatar_url":"https://github.com/rodaine.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# protoc-gen-visibility\n\n_Set cascading visibility rules for Protocol Buffer files, messages, and enums._\n\n## Example\n\n```protobuf\n// ./protos/widgets/v1/widget.proto\nsyntax = \"proto3\";\npackage widgets.v1;\n\nimport \"visibility/v1/visibility.proto\";\n\noption (visibility.v1.file_rules) = {\n  mode: MODE_PACKAGE, // entities in this file are package-private...\n  packages: [         // ...and also visible to these packages:  \n    \"gizmos.v1\", \n    \"gadgets.*\"\n  ]\n};\n\n// ...\n```\n\n`protoc-gen-visibility` is executed like any other protoc plugin, but does not generate output files. The plugin errors if there is a violation of the visibility specificiation:\n\n```shell\n$ protoc --visibility_out=. ./protos/gadgets/v1/gadget.proto\n# exits 0\n\n$ protoc --visibility_out=. ./protos/gizmos/v2/gizmo.proto\n--visibility_out: visibility constraints have been violated:\n - protos/gizmos/v2/gizmo.proto: gizmos.v2.Gizmo includes widgets.v1.Widget (MODE_PACKAGE)\n# exits 1\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodaine%2Fprotoc-gen-visibility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodaine%2Fprotoc-gen-visibility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodaine%2Fprotoc-gen-visibility/lists"}