itsybitsy/bin/Cargo.toml

44 lines
1.3 KiB
TOML

[package]
name = "itsybitsy"
version = "0.1.0"
edition = "2024"
rust-version = "1.97"
description = "Serve folders of Markdown to several domains over HTTP, Spartan and Nex"
license = "Apache-2.0"
publish = false
[[bin]]
name = "itsybitsy"
path = "src/main.rs"
[features]
# Every protocol listener is always compiled in: they are a few hundred lines of
# line parsing between them, with no dependency of their own to gate.
default = ["gemtext", "wap", "text"]
gemtext = ["dep:itsybitsy-gemtext"]
wap = ["dep:itsybitsy-wap"]
# WML 1.3 decks for WAP 1.x handsets.
wml = ["wap", "itsybitsy-wap/wml"]
text = ["dep:itsybitsy-text"]
# FIGlet banners and hyphenation for the text format, both off by default.
figlet = ["text", "itsybitsy-text/figlet"]
hyphenation = ["text", "itsybitsy-text/hyphenation"]
hyphenation-all = ["text", "itsybitsy-text/hyphenation-all"]
[dependencies]
anyhow = "1"
clap = { version = "4.6", features = ["derive"] }
env_logger = { version = "0.11", default-features = false, features = ["auto-color", "humantime"] }
itsybitsy-core = { path = "../core" }
itsybitsy-gemtext = { path = "../gemtext", optional = true }
itsybitsy-text = { path = "../text", optional = true }
itsybitsy-wap = { path = "../wap", optional = true }
log = "0.4"
[dev-dependencies]
itsybitsy-core = { path = "../core" }
tempfile = "3"
toml = "1.1"
[lints.rust]
unsafe_code = "forbid"