Use cti from rust

Proof of concept. Don't merge yet.