[native] more one-time setup for rust-C++ integration
Summary: splitting this out so that the following diff remains a standalone example for adding new rust functions to native
Test Plan: tested in subsequent diff
Reviewers: jon
Reviewed By: jon
Subscribers: ashoat, tomek, atul
Differential Revision: https://phab.comm.dev/D7229