1a67b0d
# Packaging dmpd
1a67b0d
1a67b0d
This is mostly regular package except recent addition of rust to used languages.
1a67b0d
1a67b0d
## rust-tools
1a67b0d
1a67b0d
To build the rust-tools (`make rust-tools`) one needs:
1a67b0d
1a67b0d
- rust >= 1.35
1a67b0d
- cargo with vendor subcommand (now upstream, included in latest Fedora and RHEL8)
1a67b0d
1a67b0d
### cargo vendpr
1a67b0d
1a67b0d
- run `cargo vendor` in the disrectory with sources
1a67b0d
- run `tar czf device-mapper-persistent-data-vendor-$VERSION.tar.gz ./vendor`
1a67b0d
- copy the file (if version changed) and run the *fedpkg new-sources* command:
1a67b0d
    - `fedpkg new-sources v$VERSION.tar.gz device-mapper-persistent-data-vendor-$VERSION.tar.gz`
1a67b0d
1a67b0d
## TODO/NOTES
1a67b0d
1a67b0d
Some of the dependencies may be already packaged by Fedora. Can we instruct *cargo vendor* to include only those which are not provided by Fedora?
1a67b0d
1a67b0d
*%cargo_install* installs by defualt in */usr/bin* but the package expects */usr/sbin*. For now I run *make install-rust-tools*.
1a67b0d