Cargo Features

structural_derive has no features set by default.

[dependencies]
structural_derive = { version = "0.4.3", features = ["testing", "test_asserts", "impl_fields", "use_const_str", "disable_const_str"] }
testing

A private internal feature,this is required to run tests in this crate, because declaring a crate as both a [dependency] and a [dev-dependency] causes their features to be combined, causing the optional crates of as_derive_utils that are only for testing to be enabled in regular builds.

Enables testing of as_derive_utils ^0.8.3

test_asserts

A private internal feature that enables some assertions used in structural tests.

impl_fields
use_const_str

Re-enable this feature every time you want to test whether const generics work.

disable_const_str