It will work on any size part as long as the ferrous anode's surface area is about as large as the gun part's area. Putting the anode close to the parts in the solution will reduce the voltage drop and allow a little more current to flow, speeding up the process a tad. You really can't screw anything up using a 12V battery charger, so experiment a little. Just be sure to observe the correct polarity when hooking up the rig. Be sure to disassemble the trigger group as you don't want to clean the trigger guard (aluminum) in the same set-up. Put only rusty, ferrous metal parts in the solution. You can suspend the parts on steel(or stainless steel)wire hooks over a steel rod across the barrel top.
Be sure you have good electical contact between the all the parts, wires, etc. Let us know how it works out.
OB