Skip to content

Instantly share code, notes, and snippets.

View toothbrush7777777's full-sized avatar

Toothbrush toothbrush7777777

View GitHub Profile

What do #![no_start], #![no_main], #[lang = "start"], #[start] and #[main] do?

#![no_start]

Disable automatically linking in the libnative crate and thus the default start language item.

This means you'll probably need #![no_main], #![lang = "start"] or #[start] instead.

Note: #![no_std] implies #![no_start].