@@ -24,8 +24,8 @@ its own implementations of this functionality, written in Rust.
2424
2525For a C-ABI-compatible interface to this functionality, see [ c-scape] .
2626
27- This is used by [ Mustang] and [ Eyra] in their libc implementations, and in
28- the [ Origin Studio] project in its std implementation, which are three different
27+ This is used by [ Mustang] and [ Eyra] in their libc implementations, and in the
28+ [ Origin Studio] project in its std implementation, which are three different
2929ways to support building Rust programs written entirely in Rust.
3030
3131## Example crates
@@ -51,9 +51,9 @@ Origin can also be used on its own, in several different configurations:
5151
5252 - The [ origin-start-no-alloc example] is like origin-start, but disables the
5353 "alloc" and "thread" features, since Origin's "thread" feature currently
54- depends on "alloc". Without "alloc", functions that return owned strings
55- or ` Vec ` s are not available. In this mode, Origin avoids using a
56- global allocator entirely.
54+ depends on "alloc". Without "alloc", functions that return owned strings or
55+ ` Vec ` s are not available. In this mode, Origin avoids using a global
56+ allocator entirely.
5757
5858 - The [ origin-start-lto example] is like origin-start, but builds with LTO.
5959
@@ -69,14 +69,15 @@ default they do still depend on a dynamic linker.
6969
7070For fully static linking, there are two options:
7171
72- - Build with ` RUSTFLAGS=-C target-feature=+crt-static -C relocation-model=static ` .
73- This disables PIE mode, which is safer in terms of Origin's code, but loses
74- the security benefits of Address-Space Layout Randomization (ASLR).
72+ - Build with
73+ ` RUSTFLAGS=-C target-feature=+crt-static -C relocation-model=static ` . This
74+ disables PIE mode, which is safer in terms of Origin's code, but loses the
75+ security benefits of Address-Space Layout Randomization (ASLR).
7576
76- - Build with ` RUSTFLAGS=-C target-feature=+crt-static ` and enable
77- Origin's ` experimental-relocate ` feature. This allows PIE mode to work,
78- however it does so by enabling some highly experimental code in origin for
79- performing relocations.
77+ - Build with ` RUSTFLAGS=-C target-feature=+crt-static ` and enable Origin's
78+ ` experimental-relocate ` feature. This allows PIE mode to work, however it
79+ does so by enabling some experimental code in origin for performing
80+ relocations.
8081
8182[ basic example ] : https://github.com/sunfishcode/origin/blob/main/example-crates/basic/README.md
8283[ no-std example ] : https://github.com/sunfishcode/origin/blob/main/example-crates/no-std/README.md
0 commit comments