# 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 = "nbcl"
version = "0.4.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Configuration language designed to be easy and understandable."
homepage = "https://nbcl-lang.github.io/"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/NBCL-Lang/nbcl"

[features]
default = [
    "module-imports",
    "lib-imports",
]
lib-imports = []
metadata = []
module-imports = []
pretty-errors = ["dep:ariadne"]
wasm = [
    "wasm-bindgen",
    "serde_json",
]

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

[[bin]]
name = "nbcl"
path = "src/main.rs"

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

[dependencies.ariadne]
version = "0.6.0"
optional = true

[dependencies.pest]
version = "2.8.6"

[dependencies.pest_derive]
version = "2.8.6"

[dependencies.rustc-hash]
version = "2.1.2"

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

[dependencies.serde_json]
version = "1.0.149"
optional = true

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

[profile.release]
lto = "fat"
codegen-units = 1
