-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add support for resource files #5305
Copy link
Copy link
Closed
Labels
A-build-executionArea: anything dealing with executing the compilerArea: anything dealing with executing the compilerC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-team-inputStatus: Needs input from team on whether/how to proceed.Status: Needs input from team on whether/how to proceed.
Metadata
Metadata
Assignees
Labels
A-build-executionArea: anything dealing with executing the compilerArea: anything dealing with executing the compilerC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-team-inputStatus: Needs input from team on whether/how to proceed.Status: Needs input from team on whether/how to proceed.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is similar to #2729, however, it's a bit different.
The main problem I currently have is that I cannot place configs near my executable. It's common practice in many languages and IDE's that you have some file that gets copied to output directory. For example, let's look at
csprojconfiguration for C# project:It literaly says "copy this file to output directory (wherever it is) if file in project is newer". It's common, it's convinient.
Currently in Rust i have following
build.rsscript:It actually does work, but it's not really convinient and we'd like ot have more declarative description.
We'd probably like to specify in
cargo.tomlas:or even
And be sure that when cargo build an application, resource files gets its place near executable (or at some relative path).
This feature should be limited to executables, so it doesn't work for libraries so we don't care about requiring copying these files transitively.