USB Device support for STM32F103
In the pinout page with the MCU in the middle, On the left side with all the peripherals, down the bottom enable the USB.
Then up the top in the middlewares for the class, select what class of device you want - Communication Device Class, Human Interface device etc.
This will then give the configuration (_conf) and class interface (_if) files required.