feat: tracing is now optional

This commit is contained in:
PoiScript 2024-03-06 15:42:32 +08:00
parent 14d1555fc1
commit f65e240e92
No known key found for this signature in database
GPG key ID: 22C2B1249D99985E
26 changed files with 184 additions and 45 deletions

View file

@ -20,16 +20,18 @@ all-features = true
default = []
indexmap = ["dep:indexmap"]
chrono = ["dep:chrono"]
tracing = ["dep:tracing"]
[dependencies]
bytecount = "0.6"
cfg-if = "1.0.0"
chrono = { version = "0.4", optional = true }
indexmap = { version = "2.1", optional = true }
jetscii = "0.5"
memchr = "2.5"
nom = { version = "7.1", default-features = false, features = ["std"] }
rowan = "0.15"
tracing = "0.1"
tracing = { version = "0.1", optional = true }
[dev-dependencies]
criterion = "0.5"
@ -41,6 +43,10 @@ tracing-subscriber = { version = "0.3", features = ["fmt"] }
name = "parse"
harness = false
[[example]]
name = "parse"
required-features = ["tracing"]
[profile.dev.package]
insta.opt-level = 3
similar.opt-level = 3