#[hegel::test] currently automatically adds the #[test] annotation, which means it is conditionally compiled only under cfg(test). But there are valid reasons to run hegel outside of test code, and we should support this.
Options:
- (1) Add a new
#[hegel::main], which is identical to #[hegel::test] except it does not add #[test].
- (2) Change
#[hegel::test] to not add #[hegel::test] automatically.
- (3) Add a parameter to
#[hegel::test] which disables the automatic #[hegel::test] annotation.
#[hegel::test]currently automatically adds the#[test]annotation, which means it is conditionally compiled only undercfg(test). But there are valid reasons to run hegel outside of test code, and we should support this.Options:
#[hegel::main], which is identical to#[hegel::test]except it does not add#[test].#[hegel::test]to not add#[hegel::test]automatically.#[hegel::test]which disables the automatic#[hegel::test]annotation.