{"id":15570840,"url":"https://github.com/keith/bazel-stamp-example","last_synced_at":"2026-06-30T09:30:19.918Z","repository":{"id":143169406,"uuid":"516549452","full_name":"keith/bazel-stamp-example","owner":"keith","description":"An example of bazel's stamp feature to embed git shas and other info into produced binaries","archived":false,"fork":false,"pushed_at":"2024-10-22T17:54:52.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T02:56:17.009Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Starlark","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/keith.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":"2022-07-21T23:28:23.000Z","updated_at":"2024-10-22T17:54:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"a77a4eae-e2d5-423b-8deb-8b2b5afdd418","html_url":"https://github.com/keith/bazel-stamp-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fbazel-stamp-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fbazel-stamp-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fbazel-stamp-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fbazel-stamp-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keith","download_url":"https://codeload.github.com/keith/bazel-stamp-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240367137,"owners_count":19790206,"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":[],"created_at":"2024-10-02T17:46:17.605Z","updated_at":"2026-06-30T09:30:15.856Z","avatar_url":"https://github.com/keith.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bazel-stamp-example\n\nThis is an example repo using bazel's under-documented \"stamp\" feature\nto embed information into your final binary in a relatively safe way.\n\n## Example\n\nThe `binary_example` target in the root [root `BUILD` file](BUILD) is\nthe standard example of linkstamps where you have a `cc_library` with\nthe `linkstamp` attribute, and depend on that from a binary that sets\n`stamp = 1`.\n\nThe `genrule_example` target in the [root `BUILD` file](BUILD) is an\nexample for when you don't have a top level binary you can set `stamp =\n1` on (even though in this example we still use a `cc_binary` to\ndemonstrate it working). This is useful for the case you want to embed\nthis specific information into a static library that you vendor.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeith%2Fbazel-stamp-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeith%2Fbazel-stamp-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeith%2Fbazel-stamp-example/lists"}