# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "tjson-rs"
version = "0.6.0"
authors = ["R.F. Anthracite <rfa@rfanth.com>"]
build = false
exclude = ["tests/fixtures"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Text JSON (TJSON) - a readability optimized, round trip compatible alternative to JSON"
homepage = "https://textjson.com"
readme = "README.md"
license = "BSD-3-Clause"
repository = "https://github.com/rfanth/tjson"

[features]
default = ["serde_json"]
serde_json = []

[lib]
name = "tjson"
crate-type = [
    "rlib",
    "cdylib",
]
path = "src/lib.rs"

[[bin]]
name = "tjson"
path = "src/bin/tjson.rs"

[[test]]
name = "file_tests"
path = "tests/file_tests.rs"

[dependencies.pico-args]
version = "0.5"
features = ["eq-separator"]

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"
features = [
    "preserve_order",
    "arbitrary_precision",
]

[dependencies.unicode-general-category]
version = "1.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.terminal_size]
version = "0.4"

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[lints.rust]
unsafe_code = "forbid"
