Add recipe for crates.io index

This commit is contained in:
Jeremy Soller 2022-11-30 08:16:23 -07:00
parent b9ddf201aa
commit c7f8d1e349
No known key found for this signature in database
GPG Key ID: 87F211AF2BE4C2FE

View File

@ -0,0 +1,10 @@
[source]
git = "https://github.com/rust-lang/crates.io-index.git"
[build]
template = "custom"
script = """
dir="${COOKBOOK_STAGE}/home/user/.cargo/registry/index/github.com-1ecc6299db9ec823"
mkdir -pv "${dir}"
cp -rv "${COOKBOOK_SOURCE}/.git" "${dir}"
"""