Preheat the oven to 350°F.
Line your cupcake pan with paper liners, and lightly grease the liners with cooking spray.
Toast the chopped nuts by putting in a pan over medium heat on the stove, stirring occasionally, just until warm, toasty, and fragrant. Remove from hot pan immediately so they do not burn. Set aside and let cool. (toasting is optional but adds extra deliciousness!)
In a large mixing bowl, beat together the oil, sugar, salt, eggs, and spices.
Mix the flour with the baking soda, and stir in just until all the flour is moistened. (overmixing will make the cupcakes less fluffy)
Add the carrots, nuts, and raisins. Mix until just blended.
Pour batter into the prepared cupcake liners.
Bake the cupcakes for 22 minutes, until a cake tester inserted into the center comes out with just a few moist crumbs clinging to it, and the edges are starting to brown but not too much.
Allow the cake(s) to cool completely before frosting. Allow cupcakes to cool in the pan for about 10 minutes before transferring to a rack to cool completely.
Frost the cooled cakes and garnish with toasted nuts, walnut brittle, or candied carrot twirls.