Cargo Features

[dependencies]
enigo = { version = "0.6.1", default-features = false, features = ["libei_tokio", "libei_smol", "platform_specific", "serde", "wayland", "xdo", "x11rb"] }
default = x11rb

The x11rb feature is set by default whenever enigo is added without default-features = false somewhere in the dependency tree.

libei_tokio = tokio

Enables futures, nom, and reis, tokio of ashpd

libei_smol

Enables futures, nom, and reis, async-std of ashpd

platform_specific

Affects enigo::Mouse.smooth_scroll

serde

Enables serde

wayland

Enables nom, tempfile, wayland-client, wayland-protocols-misc, and wayland-protocols-wlr

Affects linux::keymap2

xdo
x11rb default

Enables nom and x11rb

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.

tokio unix not mac libei_tokio?