Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Is there any GCP plan to support Rust as a language for Cloud Functions?

Hi there,

Out of curiosity, is there any plan to support RUST as a first-class citizen language in Google Functions?

Thanks

Solved Solved
1 4 11.9K
1 ACCEPTED SOLUTION

jkg
Google Developer Expert
Google Developer Expert

I haven't heard of any rust support coming, but you could make use of cloudrun and deploy your rust code as a container. This is probably the best light-weight, serverless way at this time to run Rust Code.

There's a useful article here, that could help you build the container, then all you'd need to do is deploy it to cloud run.

View solution in original post

4 REPLIES 4

jkg
Google Developer Expert
Google Developer Expert

I haven't heard of any rust support coming, but you could make use of cloudrun and deploy your rust code as a container. This is probably the best light-weight, serverless way at this time to run Rust Code.

There's a useful article here, that could help you build the container, then all you'd need to do is deploy it to cloud run.

There's also a kNative Rust "Hello World" sample to check out. Note the Cloud Run docs link to an older version of it.

Thanks !

jkg
Google Developer Expert
Google Developer Expert

I was having a conversation with a friend about serverless rust the other day, and I thought about this discussion, maybe this is useful for those that find this post in the future.

I wrote a short blog and associated repo that demo's how to run serverless rust. Hopefully it helps!

JK