Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
a) I'm personally not familiar with a GLIBC_XXX error as I generally compile on a Mac machine. Though I guess, I'd also suggest trying with the latest 0.x release which supports building with cross in a Docker environment. I'm not sure if that would solve the issue in your case, but I guess it's worth a shot. I'll also dig a bit deeper into zigbuild myself to see if it supports compiling in a Docker build image as mentioned - I think there should be a way though.
I've just published a new major release, v1.0.0 of the rust.aws-cdk-lambda construct library, which now uses cargo-zigbuild instead of a containerized approach using cross for building and cross-compiling Rust code. After initial testing, I am quite satisfied with the results; overall build and deploy times seem to now be faster with zig, and compilation after making minor code changes is now overall much faster! I am using this CDK construct library in a professional setting currently, but I hope others can also take advantage and benefit from using this library along with AWS CDK for any deployments to AWS Lambda.