fmt: fix build
Merge pull request #397 from ebfe/fix-build-master

fmt: fix build with rust master
Fix deprecation warnings
id: add missing repr(C)
Merge pull request #398 from ebfe/deprecation