-
Notifications
You must be signed in to change notification settings - Fork 9
/
cargo_vendor.service
79 lines (78 loc) · 4.96 KB
/
cargo_vendor.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version="1.0" encoding="UTF-8"?>
<service name="cargo_vendor">
<summary>OBS Source Service to vendor all crates.io and dependencies for a Rust project</summary>
<description><![CDATA[This service extracts a Rust application source,
searches for a Rust application containing a Cargo.toml file,
download all crates.io and dependecies,
and creates a vendor.tar[.<tar compression>] to be committed allowing fully offline
builds of Rust applications.]]></description>
<parameter name="strategy">
<description>Legacy argument, no longer used. Values: cargo_vendor. Default: cargo_vendor</description>
</parameter>
<parameter name="method">
<description>Whether to use vendor or the registry. Default: vendor</description>
<allowedvalues>registry</allowedvalues>
<allowedvalues>vendor</allowedvalues>
</parameter>
<parameter name="src">
<description>Where to find sources. Source is either a directory or a source tarball AND cannot be both. Aliases: srctar, srcdir</description>
</parameter>
<parameter name="outdir">
<description>Where to output vendor.tar* and cargo_config if method is vendor and registry.tar* if method is registry. If using with `osc service`, this option is automatically appended.</description>
</parameter>
<parameter name="custom root>
<description>Whether you want to manually set the root of the
project. Useful with a combination with `--manifest-path` (aliased as `--cargotoml`) or
`--no-root-manifest`. You have to replace the spaces with dashes (-) to make this work.
</description>
</parameter>
<parameter name="update">
<description>Update dependencies or not. Default: true</description>
<allowedvalues>false</allowedvalues>
<allowedvalues>true</allowedvalues>
</parameter>
<parameter name="no root manifest">
<description>Available only if `--method` is set to registry. If a
project has no root manifest, this flag is useful for those situations
to set the manifest path manually. Useful in combination with
`--manifest-path` (aliased as `--cargotoml`) flag. You have to replace the spaces with dashes (-) to make this work. Default: false
</description>
<allowedvalues>false</allowedvalues>
<allowedvalues>true</allowedvalues>
</parameter>
<parameter name="tag">
<description>Tag some files for multi-vendor and multi-cargo_config projects</description>
</parameter>
<parameter name="compression">
<description>What compression algorithm to use. Set to `not` if you just want a normal tarball with no compression. Default: zst</description>
<allowedvalues>zst</allowedvalues>
<allowedvalues>gz</allowedvalues>
<allowedvalues>xz</allowedvalues>
<allowedvalues>bz2</allowedvalues>
<allowedvalues>not</allowedvalues>
</parameter>
<parameter name="cargotoml">
<description>Other cargo manifest files to sync with vendor or registry. Behaviour between methods changes. Consult the documentation.</description>
</parameter>
<parameter name="i accept the risk">
<description>A list of rustsec-id's to ignore. By setting this value, you acknowledge that this issue does not affect your package and you should be exempt from resolving it. You have to replace the spaces with dashes (-) to make this work.</description>
</parameter>
<parameter name="filter">
<description>Available only if `--method` is set to vendor. EXPERIMENTAL: Reduce vendor-tarball size by filtering out non-Linux dependencies. Default: false</description>
<allowedvalues>false</allowedvalues>
<allowedvalues>true</allowedvalues>
</parameter>
<parameter name="respect lockfile">
<description>Whether to respect Cargo.lock or lockfiles by passing the `--locked` flag. You have to replace the spaces with dashes (-) to make this work. Default: false</description>
<allowedvalues>false</allowedvalues>
<allowedvalues>true</allowedvalues>
</parameter>
<parameter name="versioned dirs">
<description>Available only if `--method` is set to vendor. Whether to use the `--versioned-dirs` flag of cargo-vendor. You have to replace the spaces with dashes (-) to make this work. Default: true</description>
<allowedvalues>false</allowedvalues>
<allowedvalues>true</allowedvalues>
</parameter>
<parameter name="update crate">
<description>Set of specific crates to update. If not empty, it will set the global update flag to false. You can specify a valid version string by adding a `@` after the crate name e.g. `foo@1.2.3`. You can also do recursive updates of a crate by appending `recursive` to `@` e.g. `foo@recursive`. However, recursive can't be used with precise. You can specify a manifest path to update a package with `+` e.g. `foo@1.0+foo/better/Cargo.toml`. See `cargo help update` for info about how to update specific crates. You have to replace the spaces with dashes (-) to make this work.</description>
</parameter>
</service>