= Oxygen
Rusting, is a common name for a process which is scientifically know as oxidising. In this process, materials get oxidised, which as its name suggest, is an interaction between the material and oxygen.
So yes, there must be oxygen in the process. If there wasn't a source of oxygen, oxides (compound with oxygen in it) wouldn't be formed.
Hope it helped,
BioTeacher101