Source code
Revision control
Copy as Markdown
Other Tools
# 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.24"
authors = ["David Tolnay <dtolnay@gmail.com>"]
build = "build.rs"
autolib = false
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."
readme = "README.md"
categories = [
"rust-patterns",
"no-std",
"no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
[package.metadata.docs.rs]
rustdoc-args = [
"--generate-link-to-definition",
]
targets = ["x86_64-unknown-linux-gnu"]
[lib]
name = "ref_cast"
path = "src/lib.rs"
[[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"
[dependencies.ref-cast-impl]
version = "=1.0.24"
[dev-dependencies.ref-cast-test-suite]
version = "0"
[dev-dependencies.rustversion]
version = "1.0.13"
[dev-dependencies.trybuild]
version = "1.0.81"
features = ["diff"]