Cargo Features

Xous has no features set by default.

[dependencies]
xous = { version = "0.9.59", features = ["v2p", "swap", "forget-memory-messages", "rustc-dep-of-std", "processes-as-threads"] }
v2p

Affects syscall::virt_to_phys, syscall::virt_to_phys_pid

swap

Affects definitions::SWAPPER_PID, definitions::AllocAdvice

forget-memory-messages

If this is set, then the "Drop" feature of MemoryMessage structs will not be implemented. This should only be set by the kernel.

rustc-dep-of-std = core

This is being built as part of libstd

Enables rustc-dep-of-std of compiler_builtins

processes-as-threads

Processes and threads will all be subthreads. This is useful for kernel testing.

Affects arch::test, syscall::create_process_as_thread, syscall::wait_process_as_thread

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.

core rustc-dep-of-std?

Enables rustc-std-workspace-core

compiler_builtins rustc-dep-of-std?