Rioters have destroyed the largest library in France with fire.