RustBelt: securing the foundations of the rust programming language

Journal Article (2018)
Author(s)

Ralf Jung (Max Planck Institute for Software Systems (MPI-SWS))

Jacques-Henri Jourdan (Max Planck Institute for Software Systems (MPI-SWS))

R.J. Krebbers (TU Delft - Programming Languages)

Derek Dreyer (Max Planck Institute for Software Systems (MPI-SWS))

Research Group
Programming Languages
Copyright
© 2018 Ralf Jung, Jacques-Henri Jourdan, R.J. Krebbers, Derek Dreyer
DOI related publication
https://doi.org/10.1145/3158154
More Info
expand_more
Publication Year
2018
Language
English
Copyright
© 2018 Ralf Jung, Jacques-Henri Jourdan, R.J. Krebbers, Derek Dreyer
Research Group
Programming Languages
Issue number
POPL
Volume number
2
Pages (from-to)
66:1-66:34
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

Rust is a new systems programming language that promises to overcome the seemingly fundamental tradeoff between high-level safety guarantees and low-level control over resource management. Unfortunately, none of Rust's safety claims have been formally proven, and there is good reason to question whether they actually hold. Specifically, Rust employs a strong, ownership-based type system, but then extends the expressive power of this core type system through libraries that internally use unsafe features. In this paper, we give the first formal (and machine-checked) safety proof for a language representing a realistic subset of Rust. Our proof is extensible in the sense that, for each new Rust library that uses unsafe features, we can say what verification condition it must satisfy in order for it to be deemed a safe extension to the language. We have carried out this verification for some of the most important libraries that are used throughout the Rust ecosystem.