You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The netlify cli overfits detection of Rust binaries by looking for a specific symbol named rust_eh_personality, as filed on the binary-info package.
It would be nice if Netlify's CLI didn't overfit here trying to identify Rust binaries, or allowed some kind of opt-out of automatic detection of serverless functions so that --release profile Rust binaries can be deployed to Netlify.
I'm not sure what makes this issue stale other than that it hasn't been fixed? It seems to me that binary-info has not had any changes and that netlify-cli still uses it for detection.
Describe the bug
The netlify cli overfits detection of Rust binaries by looking for a specific symbol named
rust_eh_personality
, as filed on the binary-info package.It would be nice if Netlify's CLI didn't overfit here trying to identify Rust binaries, or allowed some kind of opt-out of automatic detection of serverless functions so that
--release
profile Rust binaries can be deployed to Netlify.Steps to reproduce
git clone [email protected]:ChristopherBiscardi/netlify-binary-function-reproduction.git
cargo install cargo-lambda
(handles cross-compilation and such)cargo lambda build
cp target/lambda/test_function/bootstrap netlify/functions/test
netlify deploy
output will show one function
cargo lambda build --release
cp target/lambda/test_function/bootstrap netlify/functions/test
netlify deploy
Netlify will not recognize a Rust binary built with
--release
.Configuration
No response
Environment
n/a
The text was updated successfully, but these errors were encountered: