Cargo Features

[dependencies]
pigg = { version = "0.5.0", default-features = false, features = ["no_std", "iroh", "tcp", "discovery", "usb-raw"] }
default = discovery, iroh, tcp, usb-raw

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

no_std

Affects config::HardwareConfig.pin_functions, config::Duration, description::HardwareDescription, description::HardwareDetails, description::SsidSpec, description::WiFiDetails, description::PinDescriptionSet, description::PinDescription

iroh default = iroh-net

Affects hw::PIGLET_ALPN, views::connect_dialog, widgets::spinner

tcp default = local-ip-address, portpicker

Affects views::connect_dialog, widgets::spinner

discovery default
usb-raw default = nusb

Affects hw_definition::usb_values, hardware_menu::DiscoveryMethod, hardware_menu::DeviceEvent, hardware_menu::KnownDevice, hardware_menu::subscription, views::ssid_dialog, widgets::spinner

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.

iroh-net iroh

Enables iroh-net

Optional Dependencies

portpicker tcp
local-ip-address tcp
nusb usb-raw