Cargo Features

[dependencies]
playdate-sys = { version = "0.4.7", default-features = false, features = ["lang-items", "allocator", "panic-handler", "eh-personality", "entry-point", "try-trait-v2", "error-ctx", "bindgen-runtime", "bindgen-static", "bindgen-logging", "bindgen-pretty-please", "bindgen-which-rustfmt", "bindings-documentation", "bindings-derive-default", "bindings-derive-eq", "bindings-derive-copy", "bindings-derive-debug", "bindings-derive-hash", "bindings-derive-ord", "bindings-derive-partialeq", "bindings-derive-partialord", "bindings-derive-constparamty"] }
default = bindgen-runtime, bindings-derive-debug

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

lang-items = allocator, eh-personality, panic-handler
allocator lang-items?

global allocator

Affects allocator::GLOBAL

panic-handler lang-items? = arrayvec

global panic handler

eh-personality lang-items?

eh_personality for sim-targets, dummy empty no-op

entry-point

simple minimal proxy entry point

Affects playdate-sys::eventHandlerShim

try-trait-v2

impl FromResidual for EventLoopCtrl

error-ctx

errors with context (incomplete feature)

Affects null::ctx

bindgen-runtime build default = bindgen

runtime linking (dlopen)

Enables runtime of playdate-bindgen

bindgen-static build = bindgen

static linking to clang

Enables static of playdate-bindgen

bindgen-logging build

Enables logging of playdate-bindgen

bindgen-pretty-please build

Enables pretty-please of playdate-bindgen

bindgen-which-rustfmt build

Enables which-rustfmt of playdate-bindgen

bindings-documentation build

parse docs from the SDK, gen doc-comments
generate docs for bindings

Enables documentation of playdate-bindgen

bindings-derive-default

ask bindgen to derive Default

bindings-derive-eq

ask bindgen to derive Eq

bindings-derive-copy

ask bindgen to derive Copy

bindings-derive-debug default

ask bindgen to derive Debug

bindings-derive-hash

ask bindgen to derive Hash

bindings-derive-ord

ask bindgen to derive Ord

bindings-derive-partialeq

ask bindgen to derive PartialEq

bindings-derive-partialord

ask bindgen to derive PartialOrd

bindings-derive-constparamty

derive ConstParamTy

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.

These "derive-" bindgen's options are presented as features to allow top-down infecting of the deps-tree, from user's top to this crate.

arrayvec panic-handler?
bindgen build bindgen-logging? bindgen-pretty-please? bindgen-runtime bindgen-static? bindgen-which-rustfmt? bindings-documentation?

Enables playdate-bindgen