[package]
edition = "2024"
name = "cjson-bindings"
version = "0.6.3"
authors = ["Antonio Salsi <passy.linux@zresa.it>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for the cJSON library - a lightweight JSON parser in C with support for JSON Pointer (RFC6901), JSON Patch (RFC6902), and JSON Merge Patch (RFC7386)"
homepage = "https://github.com/HiHappyGarden/cjson-bindings"
documentation = "https://docs.rs/cjson-bindings"
readme = "README.md"
keywords = [
"json",
"cjson",
"no_std",
"embedded",
"parser",
]
categories = [
"no-std",
"parsing",
"embedded",
"api-bindings",
]
license = "GPL-3.0"
license-file = "LICENSE"
repository = "https://github.com/HiHappyGarden/cjson-bindings"
[package.metadata.docs.rs]
features = ["std"]
default-target = "x86_64-unknown-linux-gnu"
targets = [
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"armv7-unknown-linux-gnueabihf",
"thumbv8m.main-none-eabi",
]
[features]
default = []
disable_panic = []
osal_rs = [
"dep:osal-rs",
"dep:osal-rs-serde",
"disable_panic",
]
std = []
[lib]
name = "cjson_binding"
crate-type = [
"staticlib",
"rlib",
]
path = "src/lib.rs"
[[example]]
name = "array_serialization"
path = "examples/array_serialization.rs"
[dependencies.osal-rs]
version = "0.4"
features = [
"freertos",
"serde",
]
optional = true
[dependencies.osal-rs-serde]
version = "0.4"
features = ["derive"]
optional = true
[build-dependencies.pkg-config]
version = "0.3"
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"