3 ms·
$ cat hello.rs fn main() { println!("Hello, world!") } $ rustc hello.rs -C prefer-dynamic $ ./hello Hello, world! $ ls -al hello -rwxrwx
by lifthrasiir 11y ago
$ cat hello.rs
fn main() { println!("Hello, world!") }
$ rustc hello.rs -C prefer-dynamic
$ ./hello
Hello, world!
$ ls -al hello
-rwxrwxr-x 1 lifthrasiir 9064 Mar 4 14:24 hello*
See other comments for the explanation.