# 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.56" name = "ref-cast" version = "1.0.23" authors = ["David Tolnay "] build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "Safely cast &T to &U where the struct U contains a single field of type T." documentation = "https://docs.rs/ref-cast" readme = "README.md" categories = [ "rust-patterns", "no-std", "no-std::no-alloc", ] license = "MIT OR Apache-2.0" repository = "https://github.com/dtolnay/ref-cast" [package.metadata.docs.rs] rustdoc-args = ["--generate-link-to-definition"] targets = ["x86_64-unknown-linux-gnu"] [lib] name = "ref_cast" path = "src/lib.rs" doc-scrape-examples = false [[test]] name = "test_custom" path = "tests/test_custom.rs" [[test]] name = "test_trivial" path = "tests/test_trivial.rs" [[test]] name = "compiletest" path = "tests/compiletest.rs" [dependencies.ref-cast-impl] version = "=1.0.23" [dev-dependencies.ref-cast-test-suite] version = "0" [dev-dependencies.rustversion] version = "1.0.13" [dev-dependencies.trybuild] version = "1.0.81" features = ["diff"]