-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(edit)!: Allow disabling parser or display
- Loading branch information
Showing
29 changed files
with
151 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ keywords = ["encoding", "toml"] | |
categories = ["encoding", "parser-implementations", "parsing", "config"] | ||
description = "Yet another format-preserving TOML parser." | ||
authors = ["Andronik Ordian <[email protected]>", "Ed Page <[email protected]>"] | ||
autotests = false | ||
repository.workspace = true | ||
license.workspace = true | ||
edition.workspace = true | ||
|
@@ -26,7 +27,9 @@ pre-release-replacements = [ | |
] | ||
|
||
[features] | ||
default = [] | ||
default = ["parse", "display"] | ||
parse = ["dep:winnow"] | ||
display = [] | ||
perf = ["dep:kstring"] | ||
serde = ["dep:serde", "toml_datetime/serde", "dep:serde_spanned"] | ||
# Provide a method disable_recursion_limit to parse arbitrarily deep structures | ||
|
@@ -38,7 +41,7 @@ unbounded = [] | |
|
||
[dependencies] | ||
indexmap = { version = "2.0.0", features = ["std"] } | ||
winnow = "0.5.0" | ||
winnow = { version = "0.5.0", optional = true } | ||
serde = { version = "1.0.145", optional = true } | ||
kstring = { version = "2.0.0", features = ["max_inline"], optional = true } | ||
toml_datetime = { version = "0.6.5", path = "../toml_datetime" } | ||
|
@@ -51,18 +54,26 @@ toml-test-data = "1.4.0" | |
libtest-mimic = "0.6.0" | ||
snapbox = { version = "0.4.11", features = ["harness"] } | ||
|
||
[[test]] | ||
name = "testsuite" | ||
required-features = ["parse", "display"] | ||
|
||
[[test]] | ||
name = "decoder_compliance" | ||
required-features = ["parse"] | ||
harness = false | ||
|
||
[[test]] | ||
name = "encoder_compliance" | ||
required-features = ["parse", "display"] | ||
harness = false | ||
|
||
[[test]] | ||
name = "invalid" | ||
required-features = ["parse"] | ||
harness = false | ||
|
||
[[example]] | ||
name = "visit" | ||
required-features = ["parse", "display"] | ||
test = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.