| # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| # |
| # When uploading crates to the registry Cargo will automatically |
| # "normalize" Cargo.toml files for maximal compatibility |
| # with all versions of Cargo and also rewrite `path` dependencies |
| # to registry (e.g., crates.io) dependencies. |
| # |
| # If you are reading this file be aware that the original Cargo.toml |
| # will likely look very different (and much more reasonable). |
| # See Cargo.toml.orig for the original contents. |
| |
| [package] |
| edition = "2021" |
| rust-version = "1.61" |
| name = "erased-serde" |
| version = "0.4.5" |
| authors = ["David Tolnay <[email protected]>"] |
| build = false |
| exclude = ["benches"] |
| autobins = false |
| autoexamples = false |
| autotests = false |
| autobenches = false |
| description = "Type-erased Serialize and Serializer traits" |
| documentation = "https://docs.rs/erased-serde" |
| readme = "README.md" |
| keywords = [ |
| "serde", |
| "erasure", |
| ] |
| categories = [ |
| "encoding", |
| "rust-patterns", |
| "no-std", |
| ] |
| license = "MIT OR Apache-2.0" |
| repository = "https://github.com/dtolnay/erased-serde" |
| |
| [package.metadata.docs.rs] |
| rustdoc-args = ["--generate-link-to-definition"] |
| targets = ["x86_64-unknown-linux-gnu"] |
| |
| [lib] |
| name = "erased_serde" |
| path = "src/lib.rs" |
| doc-scrape-examples = false |
| |
| [[test]] |
| name = "test" |
| path = "tests/readme.rs" |
| |
| [[test]] |
| name = "traitobject" |
| path = "tests/traitobject.rs" |
| |
| [[test]] |
| name = "compiletest" |
| path = "tests/compiletest.rs" |
| |
| [dependencies.serde] |
| version = "1.0.194" |
| default-features = false |
| |
| [dependencies.typeid] |
| version = "1" |
| |
| [dev-dependencies.rustversion] |
| version = "1.0.13" |
| |
| [dev-dependencies.serde_cbor] |
| version = "0.11.2" |
| |
| [dev-dependencies.serde_derive] |
| version = "1.0.194" |
| |
| [dev-dependencies.serde_json] |
| version = "1.0.99" |
| |
| [dev-dependencies.trybuild] |
| version = "1.0.83" |
| features = ["diff"] |
| |
| [features] |
| alloc = ["serde/alloc"] |
| default = ["std"] |
| std = [ |
| "alloc", |
| "serde/std", |
| ] |
| unstable-debug = [] |