2024-02-19 15:13:06 +00:00
|
|
|
# Copyright (C) 2023 - 2024:
|
|
|
|
# The Trinitrix Project <soispha@vhack.eu, antifallobst@systemausfall.org>
|
2024-03-26 18:56:20 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
#
|
2024-02-19 15:13:06 +00:00
|
|
|
#
|
|
|
|
# This file is part of the Trixy crate for Trinitrix.
|
|
|
|
#
|
|
|
|
# Trixy is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the Lesser GNU General Public License as
|
|
|
|
# published by the Free Software Foundation, either version 3 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# and the Lesser GNU General Public License along with this program.
|
|
|
|
# If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
2023-12-23 15:07:17 +00:00
|
|
|
[package]
|
|
|
|
name = "trixy"
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
[dependencies]
|
2024-03-26 09:38:14 +00:00
|
|
|
clap = { version = "4.5.4", features = ["derive"], optional = true }
|
2024-03-26 16:28:21 +00:00
|
|
|
convert_case = { version = "0.6.0", optional = true }
|
|
|
|
proc-macro2 = { version = "1.0.79", optional = true }
|
|
|
|
quote = { version = "1.0.35", optional = true }
|
|
|
|
syn = { version = "2.0.55", features = [
|
|
|
|
"extra-traits",
|
|
|
|
"full",
|
|
|
|
"parsing",
|
|
|
|
], optional = true }
|
|
|
|
thiserror = { version = "1.0.58", optional = true }
|
|
|
|
pulldown-cmark = { version = "0.10.0", optional = true }
|
2024-03-26 09:38:14 +00:00
|
|
|
# macros
|
2024-03-26 16:28:21 +00:00
|
|
|
prettyplease = { version = "0.2.17", optional = true }
|
2024-03-26 09:38:14 +00:00
|
|
|
|
|
|
|
# parser
|
2024-03-26 16:28:21 +00:00
|
|
|
regex = { version = "1.10.4", optional = true }
|
2024-03-26 09:38:14 +00:00
|
|
|
|
|
|
|
# types
|
2024-03-26 16:28:21 +00:00
|
|
|
libc = { version = "0.2.153", optional = true }
|
|
|
|
log = { version = "0.4.21", optional = true }
|
2024-03-26 09:38:14 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
# parser
|
|
|
|
pretty_assertions = "1.4.0"
|
|
|
|
|
|
|
|
[features]
|
2024-03-26 14:56:55 +00:00
|
|
|
# default = ["parser", "types", "macros", "build-binary"]
|
|
|
|
default = ["parser", "types", "macros"]
|
|
|
|
build-binary = ["parser", "types", "macros", "clap", "pulldown-cmark"]
|
2024-03-26 09:38:14 +00:00
|
|
|
|
2024-03-26 16:28:21 +00:00
|
|
|
parser = ["regex", "thiserror", "convert_case"]
|
|
|
|
types = [
|
|
|
|
"parser",
|
|
|
|
"libc",
|
|
|
|
"log",
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
|
|
|
"thiserror",
|
|
|
|
"convert_case",
|
|
|
|
]
|
|
|
|
macros = [
|
|
|
|
"parser",
|
|
|
|
"types",
|
|
|
|
"prettyplease",
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
|
|
|
"convert_case",
|
|
|
|
"pulldown-cmark",
|
|
|
|
]
|
2024-03-26 09:51:11 +00:00
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "trixy"
|
|
|
|
required-features = ["build-binary"]
|