{"id":15308114,"url":"https://github.com/danielmorell/go-rust-embed","last_synced_at":"2026-06-27T05:30:19.859Z","repository":{"id":144475558,"uuid":"478242880","full_name":"danielmorell/go-rust-embed","owner":"danielmorell","description":"Embed a Rust Binary In a Go Program","archived":false,"fork":false,"pushed_at":"2022-04-05T17:59:05.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T00:44:09.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/danielmorell.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-05T17:57:32.000Z","updated_at":"2022-04-05T17:59:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"293867c0-e0ea-41ec-a419-8dd3292b333f","html_url":"https://github.com/danielmorell/go-rust-embed","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"664c191d71f97bbbf483ccb92f34063af48e0ec0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmorell%2Fgo-rust-embed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmorell%2Fgo-rust-embed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmorell%2Fgo-rust-embed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmorell%2Fgo-rust-embed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielmorell","download_url":"https://codeload.github.com/danielmorell/go-rust-embed/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240310874,"owners_count":19781341,"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-01T08:14:02.903Z","updated_at":"2026-06-27T05:30:19.788Z","avatar_url":"https://github.com/danielmorell.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Embed a Rust Binary In a Go Program\n\nThis is a really simple proof of concept that embeds a Rust binary in a Go program. The\nRust binary can be executed from the Go program, and is also shipped as part of the Go\nbinary.\n\nYou can run this little example as follows...\n\n```\n$ go generate . \u0026\u0026 go run .\n```\n\nAnd build it like so...\n\n```\n$ go generate . \u0026\u0026 go build .\n```\n\nThe `go generate .` part will discover the `//go:generate` comment in \n[main.go:9](main.go#9) and execute the rest of the line as a shell command.\n\nOn [main.go:10](main.go#10) we use `//go:embed` to include the compiled rust binary into\nthe Go program when it is compiled.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmorell%2Fgo-rust-embed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielmorell%2Fgo-rust-embed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmorell%2Fgo-rust-embed/lists"}