[package]
edition = "2021"
name = "picojson"
version = "0.2.3"
authors = ["kaidokert <kaidokert@gmail.com>"]
build = "build.rs"
exclude = ["/.github/**"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A resource-constrained JSON parser for embedded systems.
"""
homepage = "https://github.com/kaidokert/picojson-rs"
documentation = "https://docs.rs/picojson"
readme = "README.md"
keywords = [
"json",
"parser",
"embedded",
"no-std",
"no-heap",
]
categories = [
"embedded",
"no-std",
"parser-implementations",
]
license = "Apache-2.0"
repository = "https://github.com/kaidokert/picojson-rs"
[package.metadata.conformance-tests]
jsontest-suite-url = "https://github.com/nst/JSONTestSuite/archive/{commit}.zip"
jsontest-suite-commit = "1ef36fa01286573e846ac449e8683f8833c5b26a"
json-checker-url = "http://www.json.org/JSON_checker/test.zip"
[features]
default = [
"int64",
"float",
]
defmt = ["dep:defmt"]
float = []
float-error = []
float-skip = []
float-truncate = []
int32 = []
int64 = []
int8 = []
remote-tests = [
"dep:ureq",
"dep:zip",
]
[lib]
name = "picojson"
path = "src/lib.rs"
[[example]]
name = "advanced_bitstack_demo"
path = "examples/advanced_bitstack_demo.rs"
[[example]]
name = "array_bitstack_demo"
path = "examples/array_bitstack_demo.rs"
[[example]]
name = "no_float_demo"
path = "examples/no_float_demo.rs"
[[example]]
name = "push_parser_demo"
path = "examples/push_parser_demo.rs"
[[example]]
name = "simple_api_demo"
path = "examples/simple_api_demo.rs"
[[example]]
name = "stream_parser_demo"
path = "examples/stream_parser_demo.rs"
[[example]]
name = "test_surrogate_pairs"
path = "examples/test_surrogate_pairs.rs"
[[test]]
name = "api_test"
path = "tests/api_test.rs"
[[test]]
name = "api_test_errors"
path = "tests/api_test_errors.rs"
[[test]]
name = "configurable_numbers"
path = "tests/configurable_numbers.rs"
[[test]]
name = "defmt_test"
path = "tests/defmt_test.rs"
[[test]]
name = "input_buffer_full_test"
path = "tests/input_buffer_full_test.rs"
[[test]]
name = "json_checker_tests"
path = "tests/json_checker_tests.rs"
[[test]]
name = "json_number_ergonomics_test"
path = "tests/json_number_ergonomics_test.rs"
[[test]]
name = "push_parser"
path = "tests/push_parser.rs"
[[test]]
name = "push_parser_copy_on_escape"
path = "tests/push_parser_copy_on_escape.rs"
[[test]]
name = "push_parser_escapes"
path = "tests/push_parser_escapes.rs"
[[test]]
name = "push_parser_invalidslicebounds_repro"
path = "tests/push_parser_invalidslicebounds_repro.rs"
[[test]]
name = "push_parser_stress_test"
path = "tests/push_parser_stress_test.rs"
[[test]]
name = "selective_extraction"
path = "tests/selective_extraction.rs"
[[test]]
name = "stream_parser_config_test"
path = "tests/stream_parser_config_test.rs"
[[test]]
name = "stream_parser_larger_buffer"
path = "tests/stream_parser_larger_buffer.rs"
[[test]]
name = "stream_parser_stress_test"
path = "tests/stream_parser_stress_test.rs"
[[test]]
name = "surrogate_pairs"
path = "tests/surrogate_pairs.rs"
[dependencies.defmt]
version = "1.0"
optional = true
[dev-dependencies.paste]
version = "1.0"
[build-dependencies.ureq]
version = "2.0"
optional = true
[build-dependencies.zip]
version = "0.6"
optional = true