Documentation
# 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 = "kcl-api"
version = "0.2.168"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "KCL API"
readme = false
license = "MIT"
repository = "https://github.com/KittyCAD/modeling-app"
resolver = "2"

[features]
pyo3 = [
    "dep:pyo3",
    "dep:pyo3-stub-gen",
]

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

[dependencies.indexmap]
version = "2.13.1"
features = [
    "serde",
    "rayon",
]

[dependencies.kcl-error]
version = "=0.2.168"

[dependencies.kittycad-unit-conversion-derive]
version = "0.1.0"

[dependencies.measurements]
version = "0.11.2"
package = "kittycad-measurements"

[dependencies.parse-display]
version = "0.11.0"

[dependencies.parse-display-derive]
version = "0.11.0"

[dependencies.pyo3]
version = "0.28.3"
optional = true

[dependencies.pyo3-stub-gen]
version = "0.22.3"
features = [
    "either",
    "numpy",
    "ordered-float",
]
optional = true
default-features = false

[dependencies.schemars]
version = "0.8.17"
features = [
    "impl_json_schema",
    "indexmap2",
    "url",
    "uuid1",
    "preserve_order",
]

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

[dependencies.ts-rs]
version = "12.0.1"
features = [
    "uuid-impl",
    "url-impl",
    "chrono-impl",
    "indexmap-impl",
    "no-serde-warnings",
    "serde-json-impl",
]

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
    "v4",
    "v5",
    "js",
    "serde",
]

[lints.clippy]
assertions_on_result_states = "warn"
dbg_macro = "warn"
iter_over_hash_type = "warn"
lossy_float_literal = "warn"
redundant_clone = "warn"
result_large_err = "allow"