Moved all rust code in src

That is, ioreg, platformtree and macro code.