To adapt this recipe to a gluten-free version, substitute the all-purpose flour with a high-quality 1:1 gluten-free baking flour that includes xanthan gum for structure. The dough may be slightly softer and less elastic, so handle it carefully and avoid overworking it. Frying time remains the same, but gluten-free donuts tend to brown more quickly, so monitor closely. The pistachio pastry cream is naturally gluten-free and requires no adjustments.