Attribute Macro main
#[main]
Expand description
Marks an async main
function as the entrypoint to a Veecle OS application.
Sets up async support through tokio
and
optionally initializes veecle_os::telemetry
.
#[veecle_os::osal::std::main]
async fn main() {
//...
}
ยงTelemetry
Telemetry setup can be enabled by setting the telemetry
argument to true
.
By default, telemetry is disabled (false
).
#[veecle_os::osal::std::main(telemetry = true)]
async fn main() {
//...
}