For the smaller target species cut the crab in half then hook thread the segments where the legs come out of over each of the hooks and then thread them up the line.
Going for Brusher and big Steenbras, Rock Snapper, Pompano hook the whole crab with a hook corresponding to the bait size, normally 5/0 to 8/0
On the South Coast I've used many rock crabs either whole or the leg segments and have caught Young Poenskop, Brusher, Stingray (Blue), Smoothhounds (many at Marina Beach) and my biggest ever catface rockcod at Palm Beach