PuzzLEGO built a working Rubik’s Cube entirely out of Lego.
Instructions for creating this can be purchased at Rebrickable.
The YouTube video below also gives some background on the project and detailed instructions for assembling the Lego Rubik’s Cube.