O2 isn't necessary for rusting, but some source of oxygen is required. Rust is just another name for iron oxide, and without oxygen there can't be oxide.
Hope this helps,
Davinia.
9.5m questions
12.2m answers