Move the rust stubs inline for better IDE integration.