Cargo Features

bounded-integer has no features set by default.

[dependencies]
bounded-integer = { version = "0.6.1", features = ["std", "alloc", "macro", "step_trait", "arbitrary1", "bytemuck1", "num-traits02", "serde1", "zerocopy"] }
std = alloc
alloc std?
macro __doc? = bounded-integer-macro
step_trait
__doc = macro

__doc is set when building the crate locally, but users should not set it. There are a few reasons we use it instead of cfg(doc):

  • The examples are gated based on this feature, and we want them to typecheck.
  • When it is enabled, we adjust the internals of the crate in a way that makes its macros unusable outside the crate. This improves documentation, but should not be done only when cfg(doc) is set.

Affects bounded-integer::examples

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

bounded-integer-macro macro?
arbitrary1 implicit feature

Enables arbitrary

arbitrary:

The trait for generating structured data from unstructured data

bytemuck1 implicit feature

Enables bytemuck

bytemuck:

A crate for mucking around with piles of bytes

num-traits02 implicit feature

Enables num-traits

num-traits:

Numeric traits for generic mathematics

serde1 implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

zerocopy implicit feature

Enables zerocopy

zerocopy:

Zerocopy makes zero-cost memory manipulation effortless. We write "unsafe" so you don't have to.