[build]
  command = """
    rustup install nightly --profile minimal && cargo doc --no-deps --all-features
    """
  publish = "target/doc"

[build.environment]
  RUSTDOCFLAGS="""
    --cfg docsrs \
    --cfg tokio_unstable \
    --cfg tokio_taskdump \
    """
  RUSTFLAGS="--cfg tokio_unstable --cfg tokio_taskdump --cfg docsrs"

[[redirects]]
  from = "/"
  to = "/tokio"
