Cargo Features

[dependencies]
moto-sys = { version = "0.2.0", default-features = false, features = ["rustc-dep-of-std", "userspace"] }
default = userspace

The userspace feature is set by default whenever moto-sys is added without default-features = false somewhere in the dependency tree.

rustc-dep-of-std = alloc, compiler_builtins, core, userspace
userspace default rustc-dep-of-std?

Affects moto-sys::time, moto-sys::align_up, moto-sys::current_cpu, moto-sys::num_cpus, stats::get_cpu_usage, syscalls::RaiiHandle, syscalls::do_syscall

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

alloc rustc-dep-of-std?

Enables rustc-std-workspace-alloc

compiler_builtins rustc-dep-of-std?
core rustc-dep-of-std?

Enables rustc-std-workspace-core