-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
44 lines (34 loc) · 1.15 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[package]
name = "easy-cast"
version = "0.5.3"
authors = ["Diggory Hardy <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
description = "Type conversions which are expected to succeed"
readme = "README.md"
documentation = "https://docs.rs/easy-cast/"
keywords = ["cast", "into", "from", "conversion"]
repository = "https://github.com/kas-gui/easy-cast"
rust-version = "1.60.0"
[package.metadata.docs.rs]
features = []
# To build locally:
# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --open
[features]
default = ["std"]
# Without std, float conversions are disabled (unless libm is used)
std = []
# libm may be used instead of std to provide float conversions
libm = ["dep:libm"]
# Note: assertions are always used in debug builds; these only affect release builds:
# Always use all assertions
always_assert = ["assert_float", "assert_int", "assert_digits"]
# Assert float -> any conversions do not exceed range of target type
assert_float = []
# Always int -> int conversions do not exceed range of target type
assert_int = []
# Assert int -> float conversion does not lose accuracy
assert_digits = []
[dependencies.libm]
version = "0.2.1"
optional = true