[dependencies.ref-cast-impl]
version = "=1.0.25"
[dev-dependencies.ref-cast-test-suite]
version = "0"
[dev-dependencies.rustversion]
version = "1.0.13"
[dev-dependencies.trybuild]
features = ["diff"]
version = "1.0.108"
[lib]
name = "ref_cast"
path = "src/lib.rs"
[package]
authors = ["David Tolnay <dtolnay@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
categories = ["rust-patterns", "no-std", "no-std::no-alloc"]
description = "Safely cast &T to &U where the struct U contains a single field of type T."
documentation = "https://docs.rs/ref-cast"
edition = "2021"
license = "MIT OR Apache-2.0"
name = "ref-cast"
readme = "README.md"
repository = "https://github.com/dtolnay/ref-cast"
rust-version = "1.61"
version = "1.0.25"
[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition", "--generate-macro-expansion", "--extern-html-root-url=core=https://doc.rust-lang.org", "--extern-html-root-url=alloc=https://doc.rust-lang.org", "--extern-html-root-url=std=https://doc.rust-lang.org"]
targets = ["x86_64-unknown-linux-gnu"]
[[test]]
name = "compiletest"
path = "tests/compiletest.rs"
[[test]]
name = "test_custom"
path = "tests/test_custom.rs"
[[test]]
name = "test_trivial"
path = "tests/test_trivial.rs"