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
|
% JUST-IMPORT-CARGO(1) | General Commands Manual
NAME
====
just-import-cargo - import the cargo dependencies of one crate
SYNOPSIS
========
**`just-import-cargo`** \[*`OPTION`*]... *`relative-crate-location`*
DESCRIPTION
===========
Given a physical repository where one subdirectory has the file
layout of a crate and a **`just-mr-repository-config`**(5) on
standard input,
- extend the repository configuration by a logical repository for
that crate, as well as logical repositories for all the transitive
dependencies as reported by **`cargo`**(1) when asked for the
development dependencies of the given crate,
- generate the needed target files in the directory *`etc/deps-rust`*
of the physical repository, and
- add appropriate rust default targets in the directory *`etc/defaults`*
of the physical repository.
OPTIONS
=======
**`-h`**, **`--help`**
Output a usage message and exit.
**`--rules`** *`name`*
Assume the rust rules are the logical repository *`name`* in the
configuration provided on standard input. Typically, the rust rules would
be imported first via **`just-import-git`**(1). If this option is not
given, the latest commit of `https://github.com/just-buildsystem/rules-rust`
is taken.
**`--repo-root`** *`root`*
Specify the root of the physical directory the configuration read from
standard input refers to. If not given, it is assumed that the current
working directory is the root of the physical repository.
**`--local-crate-cache`** *`cache-root`*
Specify the location where to cache the information about non-local crates.
If not given, `~/.cache/crate-index-just` is used.
**`-g`**, **`--to-git`**
Add the `"to_git"` pragma to the generated repositories that are non
content-fixed anyway.
**`-t`**, **`--recompute-targets`**
Recompute all target files, even if cached.
**`-r`**, **`--recompute-repos`**
Recompute all repositories, even if cached.
**`-s`**, **`--recompute-sources`**
Recompute all source descriptions, even if cached.
**`-I`**, **`--compute-index`**
Add an index repository.
See also
========
**`cargo`**(1),
**`just-deduplicate-repos`**(1),
**`just-import-git`**(1),
**`just-mr-repository-config`**(5),
**`just-mr`**(1)
|