# 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 = "2021"
name = "etoon"
version = "0.1.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast TOON (Token-Oriented Object Notation) encoder. 8x faster than toons, 2.7x faster than the official TS SDK."
readme = "README.md"
keywords = [
    "toon",
    "serialization",
    "llm",
    "json",
    "encoder",
]
categories = [
    "encoding",
    "parser-implementations",
]
license = "Apache-2.0"
repository = "https://github.com/coseto6125/etoon"

[features]
default = ["python"]
python = ["dep:pyo3"]

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

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

[[bin]]
name = "etoon"
path = "src/bin/etoon.rs"
required-features = []

[dependencies.itoa]
version = "1.0.18"

[dependencies.pyo3]
version = "0.28"
features = ["extension-module"]
optional = true

[dependencies.sonic-rs]
version = "0.5.8"
default-features = false

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = true
