improve and move theming traits

move pretty_print.rs from mers to mers_lib
This commit is contained in:
Mark
2024-06-26 12:54:04 +02:00
parent b3d6b227b5
commit 7a945e80ba
13 changed files with 488 additions and 260 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "mers_lib"
version = "0.8.15"
version = "0.8.16"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "library to use the mers language in other projects"
@@ -17,7 +17,12 @@ run = []
# color features are used when formatting error messages.
ecolor-term = ["dep:colored"]
ecolor-html = ["dep:html-escape"]
# pretty-print requires ecolor-term, but this is not listed here because I want people to explicitly opt-in to the extra `colored` dependency via the ecolor-term feature.
pretty-print = []
[dependencies]
colored = { version = "2.1.0", optional = true }
line-span = "0.1.5"
colored = { version = "2.1.0", optional = true }
html-escape = { version = "0.2.13", optional = true }