This works:
[env:bluepill_f103c8] platform = ststm32 board = bluepill_f103c8 framework = arduino board_build.core = maple upload_protocol = dfu