{"id":13995616,"url":"https://github.com/ANSSI-FR/rust-guide","last_synced_at":"2025-07-22T22:31:26.876Z","repository":{"id":40247698,"uuid":"160570350","full_name":"ANSSI-FR/rust-guide","owner":"ANSSI-FR","description":"Recommendations for secure applications development with Rust","archived":false,"fork":false,"pushed_at":"2024-07-10T12:44:28.000Z","size":2525,"stargazers_count":594,"open_issues_count":26,"forks_count":47,"subscribers_count":40,"default_branch":"master","last_synced_at":"2024-11-03T14:35:10.556Z","etag":null,"topics":["good-practices","recommendations","rust","secure-coding"],"latest_commit_sha":null,"homepage":"https://anssi-fr.github.io/rust-guide","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ANSSI-FR.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":"2018-12-05T19:50:13.000Z","updated_at":"2024-10-27T01:31:43.000Z","dependencies_parsed_at":"2024-11-03T14:31:38.183Z","dependency_job_id":"920a9e4b-ebf6-4d8e-bb84-43d9132d87c7","html_url":"https://github.com/ANSSI-FR/rust-guide","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/ANSSI-FR%2Frust-guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ANSSI-FR%2Frust-guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ANSSI-FR%2Frust-guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ANSSI-FR%2Frust-guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ANSSI-FR","download_url":"https://codeload.github.com/ANSSI-FR/rust-guide/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227190253,"owners_count":17745235,"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":["good-practices","recommendations","rust","secure-coding"],"created_at":"2024-08-09T14:03:30.690Z","updated_at":"2024-11-29T18:30:44.079Z","avatar_url":"https://github.com/ANSSI-FR.png","language":"Shell","readme":"# Guide to develop secure applications with Rust\n\n## Objectives\n\nThe objective of this document is to provide hints and recommendations for\nsecure applications development using the Rust programming language.\n\nIt is not intended to be a course on how to write Rust programs, there are\nalready plenty of good learning resources for this purpose (see the *External\nreferences* section below). The purpose is rather to guide the programmer and to\ninform them about certain pitfalls, especially in case they are involved in the\ndevelopment of applications with strong security requirements.  These\nrecommendations form a complement to the good level of trust the Rust language\nalready provides. That said, recalls are sometimes necessary for clarity, and\nthe experienced Rust programmer may rely solely on highlighted inserts\n(*Rule*, *Recommendation*, *Warning*, etc.).\n\nIt is currently an ongoing version and all contributions are welcome.\n\n## Reading the guide online\n\n[https://anssi-fr.github.io/rust-guide](https://anssi-fr.github.io/rust-guide)\n\n## Building the guide\n\nInstall `mdbook` and required preprocessor:\n\n```\ncargo install mdbook mdbook-checklist\n```\n\nThen build and open the book:\n\n```\n$ mdbook serve -o\n```\n\n## Call for Contributions\n\nAt this time, this guide is intended to be a living document. It still lacks\nimportant points and details, and future versions of the language and compiler\nmay render some recommendations obsolete. We are eager to discuss and to receive\ncontributions from anyone who is aware of common or uncommon pitfalls to avoid,\nor good coding practices and tools that can help building more robust software\nwith the Rust language.\n\nThus, feel free to create pull requests to suggest recommendations or\nmodifications, or to submit an issue to start discussions. Specifically, please\nopt for a *pull request* for small changes like:\n\n - complementing a paragraph,\n - adding a small example in the form of code snippet,\n - updating some information \n - fixing typos and English mistakes,\n - etc.\n\nand for an *issue* in case of more substantive changes:\n\n - suggesting a new recommendation,\n - discussing controversial points,\n - rewording a consistent part of the text,\n - etc.\n\n## Licence\n\nThis document is published under the [Open Licence 2.0](LICENCE.md).\n\n## External references\n\n- [The Rust programming language](https://www.rust-lang.org)\n- [The Rust book](https://doc.rust-lang.org/stable/book)\n- [The Edition Guide](https://doc.rust-lang.org/edition-guide/)\n- [Rust API Guidelines](https://rust-lang.github.io/api-guidelines)\n\nOne can also find an up-to-date list of various book resources about Rust and\nassociated tools in the [Rust documentation main\npage](https://doc.rust-lang.org).\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FANSSI-FR%2Frust-guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FANSSI-FR%2Frust-guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FANSSI-FR%2Frust-guide/lists"}