73 lines
1.8 KiB
TOML
73 lines
1.8 KiB
TOML
# 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.71"
|
|
name = "ref-cast"
|
|
version = "1.0.26"
|
|
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."
|
|
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]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
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",
|
|
]
|
|
|
|
[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.26"
|
|
|
|
[dev-dependencies.ref-cast-test-suite]
|
|
version = "0"
|
|
|
|
[dev-dependencies.rustversion]
|
|
version = "1.0.13"
|
|
|
|
[dev-dependencies.trybuild]
|
|
version = "1.0.108"
|
|
features = ["diff"]
|