# 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 = "sixu"
version = "0.10.0"
authors = ["Icemic <bingfeng.web@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Experimental Visual Novel Scripting Language"
readme = "README.md"
license = "MPL-2.0"
repository = "https://github.com/Icemic/sixu"

[features]
cst = ["dep:nom_locate"]
default = [
    "serde",
    "ts",
]
serde = ["dep:serde"]
ts = ["dep:ts-rs"]

[lib]
name = "sixu"
path = "src/lib.rs"

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.arc-swap]
version = "1.7"

[dependencies.log]
version = "0.4"

[dependencies.nom]
version = "8.0"

[dependencies.nom-language]
version = "0.1"

[dependencies.nom_locate]
version = "5.0.0"
features = ["runtime-dispatch-simd"]
optional = true

[dependencies.pollster]
version = "0.4"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.ts-rs]
version = "11.1"
optional = true

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
]
