Currently we would give the generator all of the attributes (including the #[sourcegen::sourcegen] attribute itself).
Since we don't allow modifying attributes in front of the #[sourcegen] attribute and the #[sourcegen] attribute itself, we should not provide them to the generator (with the assumption that generator can spit attrs back without doing any adjustments).
We still need to provide the #[sourcegen] attribute itself, as it might contain extra configuration for the generator, so maybe it should go into another parameter.
Currently we would give the generator all of the attributes (including the
#[sourcegen::sourcegen]
attribute itself).Since we don't allow modifying attributes in front of the
#[sourcegen]
attribute and the#[sourcegen]
attribute itself, we should not provide them to the generator (with the assumption that generator can spit attrs back without doing any adjustments).We still need to provide the
#[sourcegen]
attribute itself, as it might contain extra configuration for the generator, so maybe it should go into another parameter.