Add metadata export to JSON.

This commit is contained in:
Stephen Chung
2020-12-19 19:42:18 +08:00
parent 0182b2d3f4
commit c6a3ce2cd5
5 changed files with 221 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ no_closure = [] # no automatic sharing and capture of anonymous functions to
no_module = [] # no modules
internals = [] # expose internal data structures
unicode-xid-ident = ["unicode-xid"] # allow Unicode Standard Annex #31 for identifiers.
metadata = [ "serde", "serde_json"]
# compiling for no-std
no_std = [ "smallvec/union", "num-traits/libm", "hashbrown", "core-error", "libm", "ahash" ]
@@ -86,6 +87,12 @@ default_features = false
features = ["derive", "alloc"]
optional = true
[dependencies.serde_json]
version = "1.0.60"
default_features = false
features = ["alloc"]
optional = true
[dependencies.unicode-xid]
version = "0.2.1"
default_features = false