How do I attach an IC chip to a DIN rail?
It's possible to buy electronics housings that mount on a DIN rail. Try a search for "DIN rail enclosure". Having got a housing, mount the chip on a PCB, along with other support components, power supply, and so on, and put the PCB inside.