[RustWebApp] Find binary name from Cargo.toml #105
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: NationTech/harmony#105
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Current behavior
When generating the Dockerfile to build & run a Rust web app, the application name (e.g.
rust-webapp
) configured by the user is the one used to copy the built binary. Which forces the users to reuse the same app name as the binary name.Expected behavior
The app name shouldn't be used to find the binary. Instead, an option is to use the
Cargo.toml
file to extract the project name and use it to find the built binary.Ref.