# SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. <hello@foundation.xyz>
# SPDX-License-Identifier: GPL-3.0-or-later

[package]
categories = ["embedded", "no-std"]
description = """This crate provides a `#[no_std]` library to implement a NFC Data Exchange Format structures."""
edition = "2021"
keywords = ["no-std", "nfc"]
license = "GPL-3.0-or-later"
name = "ndef"
repository = "https://github.com/Foundation-Devices/ndef-rs"
rust-version = "1.75.0"
version = "0.5.0"

[dependencies]
derive_more = { version = "1.0", default-features = false, features = ["from"] }
dcbor = { version = "0.23", optional = true, default-features = false, features = ["no_std"] }
rustversion = "1.0"

[target.'cfg(not(features = "alloc"))'.dependencies]
heapless = { version = "0.8", default-features = false }

[features]
alloc = []
cbor = ["dep:dcbor"]

[[example]]
name = "serialize_text"
path = "examples/serialize_text.rs"
