You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will need to define a symbol for the entry point that is suitable for your target. For example, `main`, `_start`, `WinMain`, or whatever starting point is relevant for your target.
34
+
Additionally, you need to use the `#![no_main]` attribute to prevent the compiler from attempting to generate an entry point itself.
44
35
45
-
// Necessary for `panic = "unwind"` builds on cfg(unix) platforms.
46
-
#![feature(panic_unwind)]
47
-
externcrate unwind;
48
-
49
-
// Pull in the system libc library for what crt0.o likely requires.
Copy file name to clipboardExpand all lines: src/intro.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Topics that are within the scope of this book include: the meaning of (un)safety
39
39
40
40
The Rustonomicon is not a place to exhaustively describe the semantics and guarantees of every single API in the standard library, nor is it a place to exhaustively describe every feature of Rust.
41
41
42
-
Unless otherwise noted, Rust code in this book uses the Rust 2021 edition.
42
+
Unless otherwise noted, Rust code in this book uses the Rust 2024 edition.
0 commit comments