[package]
edition = "2024"
rust-version = "1.96.0"
name = "easy-cast"
version = "0.7.0"
authors = ["Diggory Hardy <git@dhardy.name>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type conversions which are expected to succeed"
documentation = "https://docs.rs/easy-cast/"
readme = "README.md"
keywords = [
"cast",
"into",
"from",
"conversion",
]
license = "Apache-2.0"
repository = "https://github.com/kas-gui/easy-cast"
[package.metadata.docs.rs]
features = []
[features]
always_assert = [
"assert_float",
"assert_int",
"assert_digits",
]
assert_digits = []
assert_float = []
assert_int = []
default = ["std"]
libm = ["dep:libm"]
std = []
[lib]
name = "easy_cast"
path = "src/lib.rs"
[[test]]
name = "array_conv"
path = "tests/array_conv.rs"
[[test]]
name = "core_ops_types"
path = "tests/core_ops_types.rs"
[[test]]
name = "core_range_types"
path = "tests/core_range_types.rs"
[[test]]
name = "float_conv"
path = "tests/float_conv.rs"
[[test]]
name = "float_to_int"
path = "tests/float_to_int.rs"
[[test]]
name = "int_conv"
path = "tests/int_conv.rs"
[[test]]
name = "int_to_float"
path = "tests/int_to_float.rs"
[[test]]
name = "tests"
path = "tests/tests.rs"
[[test]]
name = "tuple_conv"
path = "tests/tuple_conv.rs"
[dependencies.libm]
version = "0.2.1"
optional = true