Fields2Cover is a modular C++ library for generating efficient coverage paths for autonomous agricultural vehicles. It supports advanced Coverage Path Planning (CPP) techniques tailored for field operations such as spraying, mowing, or tillage. The library implements decomposition algorithms (e.g., trapezoidal, boustrophedon) to manage complex and non-convex fields, and includes route optimization tools using Google OR-tools. Version 2.0 introduces obstacle support, swath cost optimization, and a flexible API that can be extended for other industries like robotics or surveillance.