@@ -105,10 +105,6 @@ one detailed below.
105
105
* [ ` cargo:rustc-env=VAR=VALUE ` ] ( #rustc-env ) — Sets an environment variable.
106
106
* [ ` cargo:rustc-cdylib-link-arg=FLAG ` ] ( #rustc-cdylib-link-arg ) — Passes custom
107
107
flags to a linker for cdylib crates.
108
- * [ ` cargo:rustc-bin-link-arg=FLAG ` ] ( #rustc-bin-link-arg ) — Passes custom
109
- flags to a linker for bin crates.
110
- * [ ` cargo:rustc-link-arg=FLAG ` ] ( #rustc-link-arg ) — Passes custom
111
- flags to a linker for all supported crates.
112
108
* [ ` cargo:warning=MESSAGE ` ] ( #cargo-warning ) — Displays a warning on the
113
109
terminal.
114
110
* [ ` cargo:KEY=VALUE ` ] ( #the-links-manifest-key ) — Metadata, used by ` links `
@@ -209,26 +205,6 @@ to set the shared library version or the runtime-path.
209
205
210
206
[ link-arg ] : ../../rustc/codegen-options/index.md#link-arg
211
207
212
- <a id =" rustc-bin-link-arg " ></a >
213
- #### ` cargo:rustc-bin-link-arg=FLAG `
214
-
215
- The ` rustc-bin-link-arg ` instruction tells Cargo to pass the [ `-C
216
- link-arg=FLAG` option] [ link-arg ] to the compiler, but only when building a
217
- binary target. Its usage is highly platform specific. It is useful
218
- to set a linker script or other linker options.
219
-
220
- [ link-arg ] : ../../rustc/codegen-options/index.md#link-arg
221
-
222
- <a id =" rustc-link-arg " ></a >
223
- #### ` cargo:rustc-link-arg=FLAG `
224
-
225
- The ` rustc-link-arg ` instruction tells Cargo to pass the [ ` -C link-arg=FLAG `
226
- option] [ link-arg ] to the compiler, but only when building a supported target
227
- (currently a binary or ` cdylib ` library). Its usage is highly platform
228
- specific. It is useful to set the shared library version or linker script.
229
-
230
- [ link-arg ] : ../../rustc/codegen-options/index.md#link-arg
231
-
232
208
<a id =" cargo-warning " ></a >
233
209
#### ` cargo:warning=MESSAGE `
234
210
@@ -396,8 +372,6 @@ rustc-flags = "-L /some/path"
396
372
rustc-cfg = [' key="value"' ]
397
373
rustc-env = {key = " value" }
398
374
rustc-cdylib-link-arg = [" …" ]
399
- rustc-bin-link-arg = [" …" ]
400
- rustc-link-arg = [" …" ]
401
375
metadata_key1 = " value"
402
376
metadata_key2 = " value"
403
377
```
0 commit comments