Skip to content

Commit 97cbda4

Browse files
authored
Merge pull request #140 from RalfJung/reference
add introduction to book
2 parents d65f15a + 53deb04 commit 97cbda4

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ UCG WG - Rust's Unsafe Code Guidelines Working Group
1010

1111
The goal of the UCG WG is to produce the [Unsafe Code Guidelines
1212
Reference][ucg_book]: a "guide" for writing unsafe code that "recommends" what
13-
kinds of things unsafe code can and cannot do. It is largely a work-in-progress
14-
right now.
13+
kinds of things unsafe code can and cannot do, and that documents which
14+
guarantees unsafe code may rely on. It is largely a work-in-progress right now.
1515

1616
Unless we state otherwise, the information in the guide is mostly a
1717
"recommendation" and still subject to change. The main goal for the WG in 2019

Diff for: reference/book.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[book]
2-
authors = ["Niko Matsakis"]
2+
authors = ["The Rust Project Developers"]
33
multilingual = false
44
src = "src"
55
title = "Unsafe Code Guidelines Reference"

Diff for: reference/src/SUMMARY.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Summary
22

3-
[Glossary](./glossary.md)
4-
3+
- [Introduction](./introduction.md)
4+
- [Glossary](./glossary.md)
55
- [Data layout](./layout.md)
66
- [Structs and tuples](./layout/structs-and-tuples.md)
77
- [Scalars](./layout/scalars.md)

Diff for: reference/src/introduction.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Rust's Unsafe Code Guidelines Reference
2+
3+
This document is produced by the [UCG WG][ucg_wg] to provide a "guide" for
4+
writing unsafe code that "recommends" what kinds of things unsafe code can and
5+
cannot do, and that documents which guarantees unsafe code may rely on. It is
6+
largely a work-in-progress right now.
7+
8+
Unless we state otherwise, the information in the guide is mostly a
9+
"recommendation" and still subject to change. The main goal for the WG in 2019
10+
is to RFC parts of the guide into the language specification, and move those
11+
parts into the [Rust Language Reference] proper.
12+
13+
[ucg_wg]: https://github.com/rust-lang/unsafe-code-guidelines
14+
[Rust Language Reference]: https://doc.rust-lang.org/reference/index.html

0 commit comments

Comments
 (0)