# 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 = "fresh-core"
version = "0.3.6"
authors = ["Noam Lewis"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types and utilities for the Fresh editor"
homepage = "https://sinelaw.github.io/fresh/"
readme = false
license = "GPL-2.0"
repository = "https://github.com/sinelaw/fresh"

[features]
plugins = [
    "dep:rquickjs",
    "dep:rquickjs-serde",
]

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

[dependencies.anyhow]
version = "1.0.100"
default-features = false

[dependencies.lsp-types]
version = "0.97"

[dependencies.rquickjs]
version = "0.11"
features = [
    "futures",
    "macro",
]
optional = true

[dependencies.rquickjs-serde]
version = "0.5"
optional = true

[dependencies.schemars]
version = "1.2"
features = ["preserve_order"]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.ts-rs]
version = "12.0"
features = ["serde_json"]

[dev-dependencies.proptest]
version = "1.9"

[target.'cfg(target_os = "freebsd")'.dependencies.rquickjs]
version = "0.11"
features = [
    "futures",
    "macro",
    "bindgen",
]
optional = true
