-
Notifications
You must be signed in to change notification settings - Fork 11
/
README.source
21 lines (17 loc) · 927 Bytes
/
README.source
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Because Debian Stretch does not have a complete Rust packaging
environment yet, we build the Debian package by first using "cargo
vendor" to download the dependencies. To run this automatically and set
things up, manually run
debian/rules vendor
in an environment with internet accesss.
You can commit the resulting changes to your local clone, if you build
packages in CI from git sources, or you can build a source package. (You
may want to first run "debian/rules build clean" to trigger a small
change to Cargo.toml, too.) The resulting git repo / source package will
build like an ordinary Debian package, without needing to access the
internet.
The "debian/rules vendor" target does the following:
- Runs "cargo vendor" and sets up Cargo configuration
- Works around an issue where the "syn" crate includes a .gitignore
file, which is automatically ignored by dpkg-source when building the
source package