| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.57.0" |
| 15 |
name = "num-conv" |
| 16 |
version = "0.2.0" |
| 17 |
authors = ["Jacob Pratt <[email protected]>"] |
| 18 |
build = false |
| 19 |
include = [ |
| 20 |
"src/**/*", |
| 21 |
"LICENSE-*", |
| 22 |
] |
| 23 |
autolib = false |
| 24 |
autobins = false |
| 25 |
autoexamples = false |
| 26 |
autotests = false |
| 27 |
autobenches = false |
| 28 |
description = """ |
| 29 |
`num_conv` is a crate to convert between integer types without using `as` casts. This provides |
| 30 |
better certainty when refactoring, makes the exact behavior of code more explicit, and allows using |
| 31 |
turbofish syntax. |
| 32 |
""" |
| 33 |
readme = "README.md" |
| 34 |
keywords = [ |
| 35 |
"cast", |
| 36 |
"extend", |
| 37 |
"truncate", |
| 38 |
"convert", |
| 39 |
"integer", |
| 40 |
] |
| 41 |
categories = [ |
| 42 |
"no-std", |
| 43 |
"no-std::no-alloc", |
| 44 |
"rust-patterns", |
| 45 |
] |
| 46 |
license = "MIT OR Apache-2.0" |
| 47 |
repository = "https://github.com/jhpratt/num-conv" |
| 48 |
|
| 49 |
[package.metadata.docs.rs] |
| 50 |
rustdoc-args = ["--generate-link-to-definition"] |
| 51 |
|
| 52 |
[features] |
| 53 |
|
| 54 |
[lib] |
| 55 |
name = "num_conv" |
| 56 |
path = "src/lib.rs" |
| 57 |
|
| 58 |
[lints.clippy] |
| 59 |
alloc-instead-of-core = "deny" |
| 60 |
std-instead-of-core = "deny" |
| 61 |
|
| 62 |
[lints.rust] |
| 63 |
missing-docs = "warn" |
| 64 |
unreachable-pub = "warn" |
| 65 |
unused = "warn" |