rust/src/tools/build-manifest
Vadim Petrochenkov 434152157f Remove lint annotations in specific crates that are already enforced by rustbuild
Remove some random unnecessary lint `allow`s
2019-07-28 18:46:24 +03:00
..
src Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
Cargo.toml remove unneeded extern crates from build tools 2019-05-09 12:03:13 -04:00
README.md build-manifest: add instructions to test the tool locally 2018-08-29 23:01:43 +02:00

build-manifest

This tool generates the manifests uploaded to static.rust-lang.org and used by rustup. The tool is invoked by the bootstrap tool.

Testing changes locally

In order to test the changes locally you need to have a valid dist directory available locally. If you don't want to build all the compiler, you can easily create one from the nightly artifacts with:

#!/bin/bash
for cmpn in rust rustc rust-std rust-docs cargo; do
    wget https://static.rust-lang.org/dist/${cmpn}-nightly-x86_64-unknown-linux-gnu.tar.gz
done

Then, you can generate the manifest and all the packages from path/to/dist to path/to/output with:

$ BUILD_MANIFEST_DISABLE_SIGNING=1 cargo +nightly run \
    path/to/dist path/to/output 1970-01-01 \
    nightly nightly nightly nightly nightly nightly nightly \
    http://example.com

In the future, if the tool complains about missing arguments just add more nightlys in the middle.