Yi Kong | d600cb0 | 2020-08-31 01:25:28 +0800 | [diff] [blame] | 1 | [package] |
| 2 | name = "serde_json" |
David LeGare | 2f2c465 | 2022-03-02 16:21:22 +0000 | [diff] [blame] | 3 | version = "1.0.79" # remember to update html_root_url |
Yi Kong | d600cb0 | 2020-08-31 01:25:28 +0800 | [diff] [blame] | 4 | authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>", "David Tolnay <dtolnay@gmail.com>"] |
| 5 | license = "MIT OR Apache-2.0" |
| 6 | description = "A JSON serialization file format" |
| 7 | repository = "https://github.com/serde-rs/json" |
| 8 | documentation = "https://docs.serde.rs/serde_json/" |
| 9 | keywords = ["json", "serde", "serialization"] |
| 10 | categories = ["encoding"] |
| 11 | readme = "README.md" |
Yi Kong | d600cb0 | 2020-08-31 01:25:28 +0800 | [diff] [blame] | 12 | edition = "2018" |
David LeGare | 2f2c465 | 2022-03-02 16:21:22 +0000 | [diff] [blame] | 13 | rust-version = "1.36" |
Yi Kong | d600cb0 | 2020-08-31 01:25:28 +0800 | [diff] [blame] | 14 | |
| 15 | [dependencies] |
| 16 | serde = { version = "1.0.100", default-features = false } |
Chih-Hung Hsieh | b93bfcb | 2020-10-26 13:16:59 -0700 | [diff] [blame] | 17 | indexmap = { version = "1.5", optional = true } |
David LeGare | 2f2c465 | 2022-03-02 16:21:22 +0000 | [diff] [blame] | 18 | itoa = "1.0" |
Yi Kong | d600cb0 | 2020-08-31 01:25:28 +0800 | [diff] [blame] | 19 | ryu = "1.0" |
| 20 | |
| 21 | [dev-dependencies] |
Chih-Hung Hsieh | b93bfcb | 2020-10-26 13:16:59 -0700 | [diff] [blame] | 22 | automod = "1.0" |
David LeGare | 2f2c465 | 2022-03-02 16:21:22 +0000 | [diff] [blame] | 23 | ref-cast = "1.0" |
Yi Kong | d600cb0 | 2020-08-31 01:25:28 +0800 | [diff] [blame] | 24 | rustversion = "1.0" |
| 25 | serde_bytes = "0.11" |
| 26 | serde_derive = "1.0" |
| 27 | serde_stacker = "0.1" |
David LeGare | 2f2c465 | 2022-03-02 16:21:22 +0000 | [diff] [blame] | 28 | trybuild = { version = "1.0.49", features = ["diff"] } |
Yi Kong | d600cb0 | 2020-08-31 01:25:28 +0800 | [diff] [blame] | 29 | |
| 30 | [workspace] |
| 31 | members = ["tests/crate"] |
| 32 | |
| 33 | [package.metadata.docs.rs] |
| 34 | features = ["raw_value", "unbounded_depth"] |
| 35 | targets = ["x86_64-unknown-linux-gnu"] |
Joel Galenson | d1eaeaf | 2021-08-09 10:42:14 -0700 | [diff] [blame] | 36 | rustdoc-args = ["--cfg", "docsrs"] |
Yi Kong | d600cb0 | 2020-08-31 01:25:28 +0800 | [diff] [blame] | 37 | |
| 38 | [package.metadata.playground] |
| 39 | features = ["raw_value"] |
| 40 | |
| 41 | |
| 42 | ### FEATURES ################################################################# |
| 43 | |
| 44 | [features] |
| 45 | default = ["std"] |
| 46 | |
| 47 | std = ["serde/std"] |
| 48 | |
| 49 | # Provide integration for heap-allocated collections without depending on the |
| 50 | # rest of the Rust standard library. |
| 51 | # NOTE: Disabling both `std` *and* `alloc` features is not supported yet. |
| 52 | # Available on Rust 1.36+. |
| 53 | alloc = ["serde/alloc"] |
| 54 | |
| 55 | # Make serde_json::Map use a representation which maintains insertion order. |
| 56 | # This allows data to be read into a Value and written back to a JSON string |
| 57 | # while preserving the order of map keys in the input. |
| 58 | preserve_order = ["indexmap"] |
| 59 | |
| 60 | # Use sufficient precision when parsing fixed precision floats from JSON to |
| 61 | # ensure that they maintain accuracy when round-tripped through JSON. This comes |
| 62 | # at an approximately 2x performance cost for parsing floats compared to the |
| 63 | # default best-effort precision. |
| 64 | # |
| 65 | # Unlike arbitrary_precision, this feature makes f64 -> JSON -> f64 produce |
| 66 | # output identical to the input. |
| 67 | float_roundtrip = [] |
| 68 | |
| 69 | # Use an arbitrary precision number representation for serde_json::Number. This |
| 70 | # allows JSON numbers of arbitrary size/precision to be read into a Number and |
| 71 | # written back to a JSON string without loss of precision. |
| 72 | # |
| 73 | # Unlike float_roundtrip, this feature makes JSON -> serde_json::Number -> JSON |
| 74 | # produce output identical to the input. |
| 75 | arbitrary_precision = [] |
| 76 | |
| 77 | # Provide a RawValue type that can hold unprocessed JSON during deserialization. |
| 78 | raw_value = [] |
| 79 | |
| 80 | # Provide a method disable_recursion_limit to parse arbitrarily deep JSON |
| 81 | # structures without any consideration for overflowing the stack. When using |
| 82 | # this feature, you will want to provide some other way to protect against stack |
| 83 | # overflows, such as by wrapping your Deserializer in the dynamically growing |
| 84 | # stack adapter provided by the serde_stacker crate. Additionally you will need |
| 85 | # to be careful around other recursive operations on the parsed result which may |
| 86 | # overflow the stack after deserialization has completed, including, but not |
| 87 | # limited to, Display and Debug and Drop impls. |
| 88 | unbounded_depth = [] |