XCFun is a library of exchange-correlation (XC) functionals to be used in density-functional theory (DFT) codes.