Cargo Features

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

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 device_net::iroh_device, host_net::iroh_host, net::PIGLET_ALPN, views::connect_dialog, widgets::spinner

tcp default = local-ip-address, portpicker

Affects device_net::tcp_device, discovery::mdns_discovery, host_net::tcp_host, description::TCP_MDNS_SERVICE_NAME, description::TCP_MDNS_SERVICE_PROTOCOL, description::TCP_MDNS_SERVICE_TYPE, views::connect_dialog, widgets::spinner

discovery default = mdns-sd

Enables discovery-local-network of iroh-net

Optional Dependencies

Affects usb_host::get_hardware_details, usb_host::get_wifi_details, views::devices_menu, usb_host::get_serials, usb_host::get_details, description::TCP_MDNS_SERVICE_NAME, description::TCP_MDNS_SERVICE_PROTOCOL, description::TCP_MDNS_SERVICE_TYPE

usb default = nusb

Affects discovery::usb_discovery, host_net::usb_host, hw_definition::usb_values, views::ssid_dialog, usb_host::get_serials, usb_host::get_details, 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 discovery iroh
portpicker tcp
local-ip-address tcp
nusb usb
mdns-sd discovery