Cross Compiling Rust lambdas for Netlify Functions is fairly straightforward using
[toolchain]channel = "stable"components = ["rustfmt", "clippy"]targets = ["x86_64-unknown-linux-musl"]
[target.x86_64-unknown-linux-musl]linker = "x86_64-linux-musl-gcc"
You will also need the following.
brew install FiloSottile/musl-cross/musl-crossbrew install gccln -s /usr/local/bin/x86_64-linux-musl-gcc /usr/local/bin/musl-gcc
Or you could use ed25519-dalek which is rust-native and skips these problems.