Cargo Features

[dependencies]
rawsys-linux = { version = "1.0.1", default-features = false, features = ["full", "std", "all", "aarch64", "arm", "loongarch64", "mips", "mips64", "powerpc", "powerpc64", "riscv32", "riscv64", "s390x", "sparc", "sparc64", "x86", "x86_64", "serde", "thumb-mode", "default_kernel_5_4", "default_kernel_5_15", "default_kernel_6_6", "default_kernel_6_12"] }
default = serde, std

These default features are set whenever rawsys-linux is added without default-features = false somewhere in the dependency tree.

full = all, serde, std

Enables all extra features.

std default full?

Enables usage of libstd.

all full? = aarch64, arm, loongarch64, mips, mips64, powerpc, powerpc64, riscv32, riscv64, s390x, sparc, sparc64, x86, x86_64

Includes the syscall tables for all architectures.

aarch64 all?

Enable syscall tables for individual architectures.

Affects arch::aarch64

arm all?

Affects arch::arm

loongarch64 all?

Affects arch::loongarch64

mips all?

Affects arch::mips

mips64 all?

Affects arch::mips64

powerpc all?

Affects arch::powerpc

powerpc64 all?

Affects arch::powerpc64

riscv32 all?

Affects arch::riscv32

riscv64 all?

Affects arch::riscv64

s390x all?

Affects arch::s390x

sparc all?

Affects arch::sparc

sparc64 all?

Affects arch::sparc64

x86 all?

Affects arch::x86

x86_64 all?

Affects arch::x86_64

serde default full? = serde_repr

Enables Serialize/Deserialize impls.

Enables serde

thumb-mode

Generates instructions that are compatible with thumb-mode. This is set automatically by build.rs if the target supports thumb-mode.

default_kernel_5_4

Kernel version selection (pick exactly one).
By default, we target Linux 6.12 across all ISAs.

default_kernel_5_10 default_kernel_5_15
default_kernel_6_1 default_kernel_6_6
default_kernel_6_10 default_kernel_6_12

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.

serde_repr serde