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
Copy file name to clipboardExpand all lines: text/0000-profile-dependencies.md
+8-13Lines changed: 8 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
- Feature Name: custom_cargo_profiles
1
+
- Feature Name: profile_dependencies
2
2
- Start Date: 2018-01-08
3
3
- RFC PR: (leave this empty)
4
4
- Rust Issue: (leave this empty)
@@ -7,7 +7,7 @@
7
7
# Summary
8
8
[summary]: #summary
9
9
10
-
Add the ability to create custom profiles in Cargo.toml, to provide further control over how the project is built. Allow overriding profile keys for certain dependency trees.
10
+
Allow overriding profile keys for certain dependencies, as well as providing
11
11
12
12
# Motivation
13
13
[motivation]: #motivation
@@ -16,28 +16,23 @@ Currently the "stable" way to tweak build parameters like "debug symbols", "debu
16
16
17
17
This file is typically checked in tree, so for many projects overriding things involves making
18
18
temporary changes to this, which feels hacky. On top of this, if Cargo is being called by an
19
-
encompassing build system as what happens in Firefox, these changes can seem surprising. There are
20
-
currently two main profiles in Cargo ("dev" and "release"), and we're forced to fit everything we
21
-
need into these two categories. This isn't really enough.
19
+
encompassing build system as what happens in Firefox, these changes can seem surprising.
22
20
23
-
Furthermore, this doesn't allow for much customization. For example, when trying to optimize for
21
+
This also doesn't allow for much customization. For example, when trying to optimize for
24
22
compilation speed by building in debug mode, build scripts will get built in debug mode as well. In
25
23
case of complex build-time dependencies like bindgen, this can end up significantly slowing down
26
24
compilation. It would be nice to be able to say "build in debug mode, but build build dependencies
27
25
in release". Also, your program may have large dependencies that it doesn't use in critical paths,
28
26
being able to ask for just these dependencies to be run in debug mode would be nice.
0 commit comments