nrc / derive-new

derive simple constructor functions for Rust structs
MIT License
525 stars 35 forks source link

tests: Restructure not to fail compile w/o feature = "std" #49

Closed kentfredric closed 4 years ago

kentfredric commented 4 years ago

Greetings fellow christchurchian, hope you're going OK with this lockdown :D

This patch allows:

cargo hack --feature-powerset test --tests

To pass.

Imports and Item definitions moved into their consuming functions in order to simplify elimination of "used warnings" and make feature-test interactions more obvious.

Presently, Doctests are too tricky to work out how to manage equivalents for.