Itchy in both eyes hours after going to dirty librar to work, rubbing eyes. Could infection start that fast/?

Unlikely. Most likely your eyes are itchy from dust or other allergy causing particles in the dust. I would recommend that you flush out your eyes with artificial tears.