This is quite an old version of rust[1]. I tried this a little while ago (but got frustrated trying to link it)
[1] For example:
* `u16` would now be: `const u16` * `int` is no longer a type. * `slice::as_ptr` is now a method, so using transmute to extract the pointer from a slice is probably not ideal. * `core` is a crate that includes things like transmute so you don't need to manually include rust intrinsics etc.