amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Rust runtime build options for "amplify push"/ "amplify function build"

Open danikhan632 opened this issue 3 years ago • 0 comments

Is this feature request related to a new or existing Amplify category?

No response

Is this related to another service?

No response

Describe the feature you'd like to request

when running "amplify push"/ "amplify function build" the cli attempt to compile the rust functions using Docker which I have found to not work

e.g. Error: Command failed with exit code 125: docker run --platform linux/amd64 --rm --user "$(id -u)":"$(id: -g)" -v

Describe the solution you'd like

a few solutions for macOS would work being able to customize what "amplify push"/ "amplify function build" run in a config file for instance using after install a mac to linux cross-complier

additionally something like this work work well

amplify push --function-build-override "cargo build --release --target x86_64-unknown-linux-gnu"

amplify function build --function-build-override "cargo build --release --target x86_64-unknown-linux-gnu"

this would also be helpful for Windows

Describe alternatives you've considered

Allow for alternative rust build options

Additional context

No response

Is this something that you'd be interested in working on?

  • [ ] 👋 I may be able to implement this feature request

Would this feature include a breaking change?

  • [ ] ⚠️ This feature might incur a breaking change

danikhan632 avatar Aug 04 '22 17:08 danikhan632