It depends on the race, sometimes there are rules that might surprise you. One that I recently signed up for has pretty specific gear requirements for 10k/21k/42k/60k. Trail races can have strict rules as well, like the type of compass and nutrients you need.