[package]
name = "playdate-sys"
version = "0.3.6"
build = "src/build.rs"
readme = "README.md"
description = "Low-level Playdate API bindings"
keywords = ["playdate", "bindings", "ffi", "gamedev"]
categories = [
"external-ffi-bindings",
"development-tools::ffi",
"game-development",
"no-std",
]
edition.workspace = true
license.workspace = true
authors.workspace = true
homepage.workspace = true
repository.workspace = true
[features]
default = ["bindgen-runtime", "bindings-derive-debug"]
lang-items = ["allocator", "panic-handler", "eh-personality"]
allocator = []
panic-handler = ["arrayvec"]
eh-personality = []
entry-point = []
try-trait-v2 = []
error-ctx = []
bindgen-runtime = ["bindgen", "bindgen/runtime"]
bindgen-static = ["bindgen", "bindgen/static"]
bindgen-logging = ["bindgen/logging"]
bindgen-pretty-please = ["bindgen/pretty-please"]
bindgen-which-rustfmt = ["bindgen/which-rustfmt"]
bindings-documentation = ["bindgen/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 = []
[dependencies]
arrayvec = { version = "0.7", default-features = false, optional = true }
[build-dependencies.bindgen]
optional = true
workspace = true
default-features = false
[build-dependencies.bindgen-cfg]
workspace = true
default-features = false
[package.metadata.docs.rs]
all-features = false
features = [
"lang-items",
"entry-point",
"try-trait-v2",
"error-ctx",
"bindings-derive-default",
"bindings-derive-eq",
"bindings-derive-copy",
"bindings-derive-debug",
"bindings-derive-hash",
"bindings-derive-ord",
"bindings-derive-partialeq",
"bindings-derive-partialord",
]
rustdoc-args = ["--cfg", "docsrs", "--show-type-layout"]
default-target = "thumbv7em-none-eabihf"
cargo-args = [
"-Zunstable-options",
"-Zrustdoc-scrape-examples",
"-Zbuild-std=core,alloc",
]
[[example]]
name = "hello-world"
crate-type = ["dylib", "staticlib"]
path = "examples/hello-world.rs"
required-features = ["lang-items"]
[[example]]
name = "handler"
crate-type = ["dylib", "staticlib"]
path = "examples/handler.rs"
required-features = ["lang-items", "entry-point"]
[package.metadata.playdate]
bundle-id = "rs.playdate.sys"