Sugar dust does not “literally detonate”. The term you are looking for is “deflagrate”. Sugar is not a high explosive.
All carbohydrate powders have this property. We’ve had grain elevator explosions for as long as we’ve had grain elevators. Demonstrating this with bread flour was an old schoolboy trick. An extremely wide range of ordinary dusts and powders will work.
Dust explosions are the far more improbable solid phase equivalent of a gas leak explosion.