Revision control

Copy as Markdown

Other Tools

[package]
name = "num-conv"
version = "0.1.0"
authors = ["Jacob Pratt <jacob@jhpratt.dev>"]
edition = "2021"
rust-version = "1.57.0"
keywords = ["cast", "extend", "truncate", "convert", "integer"]
categories = ["no-std", "no-std::no-alloc", "rust-patterns"]
readme = "README.md"
license = "MIT OR Apache-2.0"
description = """
`num_conv` is a crate to convert between integer types without using `as` casts. This provides
better certainty when refactoring, makes the exact behavior of code more explicit, and allows using
turbofish syntax.
"""
include = ["src/**/*", "LICENSE-*"]
[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
[features]
[lints.rust]
missing-docs = "warn"
unreachable-pub = "warn"
unused = "warn"
[lints.clippy]
alloc-instead-of-core = "deny"
std-instead-of-core = "deny"