# 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 = "finetype-model"
version = "0.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Candle-based transformer model for FineType"
homepage = "https://noon.sh/projects/finetype/"
readme = false
keywords = [
    "type-detection",
    "data-profiling",
    "classification",
    "duckdb",
    "text",
]
categories = [
    "text-processing",
    "science",
]
license = "MIT"
repository = "https://github.com/noon-org/finetype"

[features]
cpu = []
cuda = [
    "candle-core/cuda",
    "candle-nn/cuda",
    "candle-transformers/cuda",
]
default = ["cpu"]
metal = [
    "candle-core/metal",
    "candle-nn/metal",
    "candle-transformers/metal",
]

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

[dependencies.candle-core]
version = "0.8"

[dependencies.candle-nn]
version = "0.8"

[dependencies.candle-transformers]
version = "0.8"

[dependencies.finetype-core]
version = "0.2.1"

[dependencies.rand]
version = "0.8"

[dependencies.regex]
version = "1"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokenizers]
version = "0.21"
features = [
    "onig",
    "http",
]
default-features = false

[dependencies.tracing]
version = "0.1"

[dev-dependencies.anyhow]
version = "1.0"
