When I do:
#[table(name=test)]
struct Test {
#[cfg_attr(feature(x), unique)]
x: i32,
}
I get the same result both without and with the x feature enabled.
cargo expand seems to show only #[unique] come and go, while manually setting this attribute results in a bunch of expected code (UniqueColumn, IndexDesc and friends) generated.
I assume the issue is within the derive macro for SpacetimeType, but don't know where to look specifically.