{"id":17286231,"url":"https://github.com/devrandom/trust-rust","last_synced_at":"2025-06-29T06:03:56.498Z","repository":{"id":66937803,"uuid":"112030339","full_name":"devrandom/trust-rust","owner":"devrandom","description":"A trusted Rust build system","archived":false,"fork":false,"pushed_at":"2017-12-05T18:17:05.000Z","size":15,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T10:51:09.551Z","etag":null,"topics":["gitian","rustlang"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devrandom.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,"zenodo":null}},"created_at":"2017-11-25T19:51:01.000Z","updated_at":"2025-02-22T21:18:21.000Z","dependencies_parsed_at":"2023-05-15T00:45:14.802Z","dependency_job_id":null,"html_url":"https://github.com/devrandom/trust-rust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devrandom/trust-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrandom%2Ftrust-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrandom%2Ftrust-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrandom%2Ftrust-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrandom%2Ftrust-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devrandom","download_url":"https://codeload.github.com/devrandom/trust-rust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrandom%2Ftrust-rust/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262545028,"owners_count":23326655,"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":["gitian","rustlang"],"created_at":"2024-10-15T09:58:46.460Z","updated_at":"2025-06-29T06:03:56.492Z","avatar_url":"https://github.com/devrandom.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Rust compiler from trusted build roots\n======\n\nThis repository aims to build the Rust compiler without using the Rust compiler binary.\n\nhttp://vxer.org/lib/pdf/Reflections%20on%20Trusting%20Trust.pdf\n\nHOWTO\n======\n\nThe following was tested on Debian 9.  Total build time is 2-3 hours because of lack\nof parallelism in the rustc bootstrap phase.\n\n```\nsudo apt install build-essential cmake curl git diffoscope libssl-dev libcurl4-openssl-dev pkg-config libssh2-1-dev\n./go-fetch\n\n# from this point on, there should be no network access\n./go-build\n./go-compare\n```\n\ndiffoscope result will be in `report.md` and various logs in `*.log`.\n\nUSE\n======\n\nAfter building, do the following:\n\n```\nmkdir trusted\ncp -a trust-rust/rust/build/x86_64-unknown-linux-gnu/stage2/* trusted\nPATH=`pwd`/trusted/bin:$PATH\n```\n\n`rustc -V` should produce `rustc 1.19.0-dev (0ade33941 2017-07-17)`.\n\nTODO\n======\n\n- cargo TLS\n- Evaluate artifacts other than `rustc` with diffoscope\n- Check how far we are from a deterministic build\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevrandom%2Ftrust-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevrandom%2Ftrust-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevrandom%2Ftrust-rust/lists"}