A covalent organic framework-cadmium sulfide hybrid as a prototype photocatalyst for visible-light-driven hydrogen production.