# 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"
rust-version = "1.80"
name = "sus_compiler"
version = "0.2.1"
authors = ["Lennart Van Hirtum <lennart.vanhirtum@gmail.com>"]
build = "build.rs"
include = [
    "/src",
    "/std/*",
    "/README.md",
    "/LICENSE",
    "/CHANGELOG.md",
    "/build.rs",
    "/rustfmt.toml",
]
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Compiler for the SUS Hardware Design Language"
homepage = "https://github.com/pc2/sus-compiler"
readme = "README.md"
keywords = [
    "sus",
    "fpga",
    "vlsi",
    "hdl",
    "verilog",
]
categories = [
    "compilers",
    "text-processing",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/pc2/sus-compiler"

[profile.release]
debug = 2

[profile.smol]
opt-level = "z"
lto = true
codegen-units = 1
debug = 0
panic = "abort"
inherits = "release"
strip = true

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

[dependencies.ariadne]
version = "0.5.1"

[dependencies.bitvector]
version = "0.1.5"

[dependencies.clap]
version = "4.5.21"
features = [
    "derive",
    "wrap_help",
]

[dependencies.lsp-server]
version = "0.7.1"
optional = true

[dependencies.lsp-types]
version = "0.94.0"
optional = true

[dependencies.num]
version = "0.4"

[dependencies.serde]
version = "1.0.156"
optional = true

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

[dependencies.sus-proc-macro]
version = "~0.2.0"

[dependencies.tree-sitter]
version = "~0.24.7"

[dependencies.tree-sitter-sus]
version = "~0.2.0"

[build-dependencies.dirs-next]
version = "2.0.0"

[features]
default = ["lsp"]
lsp = [
    "lsp-server",
    "lsp-types",
    "serde_json",
    "serde",
]