{"id":15030877,"url":"https://github.com/rust-lang/unsafe-code-guidelines","last_synced_at":"2025-05-15T05:07:19.430Z","repository":{"id":33273916,"uuid":"139737011","full_name":"rust-lang/unsafe-code-guidelines","owner":"rust-lang","description":"Forum for discussion about what unsafe code can and can't do","archived":false,"fork":false,"pushed_at":"2024-11-19T06:42:04.000Z","size":358,"stargazers_count":689,"open_issues_count":219,"forks_count":60,"subscribers_count":76,"default_branch":"master","last_synced_at":"2025-05-15T00:05:41.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rust-lang.github.io/unsafe-code-guidelines","language":null,"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/rust-lang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2018-07-04T15:06:32.000Z","updated_at":"2025-05-11T13:49:23.000Z","dependencies_parsed_at":"2024-03-17T19:30:35.513Z","dependency_job_id":"23746964-0e2a-4369-b2ac-2ef14f15afa2","html_url":"https://github.com/rust-lang/unsafe-code-guidelines","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/rust-lang%2Funsafe-code-guidelines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-lang%2Funsafe-code-guidelines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-lang%2Funsafe-code-guidelines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-lang%2Funsafe-code-guidelines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-lang","download_url":"https://codeload.github.com/rust-lang/unsafe-code-guidelines/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254276447,"owners_count":22043867,"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-09-24T20:14:26.466Z","updated_at":"2025-05-15T05:07:14.419Z","avatar_url":"https://github.com/rust-lang.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"\nUCG - Rust's Unsafe Code Guidelines\n===\n\nThe purpose of this repository is to collect and discuss all sorts of questions that come up when writing unsafe code.\nIt is primarily used by the [opsem team](https://github.com/rust-lang/opsem-team/) to track open questions around the operational semantics, but we also track some \"non-opsem\" questions that fall into T-lang or T-type's purview, if they are highly relevant to unsafe code authors.\n\nThe [Unsafe Code Guidelines Reference \"book\"][ucg_book] is a past effort to systematize a consensus on some of these questions.\nIt is not actively maintained any more, but can still be a good source of information and references.\nNote however that unless stated otherwise, the information in the guide is mostly a \"recommendation\" and still subject to change.\n\nCurrent consensus is documented in [t-opsem FCPs](https://github.com/rust-lang/opsem-team/blob/main/fcps.md) and the [Rust Language Reference].\n\n[ucg_book]: https://rust-lang.github.io/unsafe-code-guidelines\n[Rust Language Reference]: https://doc.rust-lang.org/reference/index.html\n\n## See also\n\nThe [Rustonomicon] is a draft document discussing unsafe code. It is intended to\nbe brought into agreement with the content here. It represents an organized\neffort to explain how to write Rust code, rather than a reference.\n\n[Rustonomicon]: https://doc.rust-lang.org/nightly/nomicon/\n\n## Code of Conduct and licensing\n\nAll interactions on this repository (whether on issues, PRs, or\nelsewhere) are governed by the [Rust Code of\nConduct](CODE_OF_CONDUCT.md).\n\nFurther, all content on this repository is subject to the standard\n[Rust](LICENSE-MIT) [licensing](LICENSE-APACHE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-lang%2Funsafe-code-guidelines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-lang%2Funsafe-code-guidelines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-lang%2Funsafe-code-guidelines/lists"}