Files
meta-rust/classes/crate-fetch.bbclass
Doug Goldstein 85471f88e5 bitbake: add crate fetcher
This adds a handler for crate:// URLs and rewrites them to crates.io
https endpoint and handles properly unpacking the crate. This fixes #24.
2016-07-12 16:33:02 -05:00

14 lines
250 B
Plaintext

#
# crate-fetch class
#
# Registers 'crate' method for Bitbake fetch2.
#
# Adds support for following format in recipe SRC_URI:
# crate://<packagename>/<version>
#
python () {
import crate
bb.fetch2.methods.append( crate.Crate() )
}