Debian Codegraph @

netlify.toml

raw symbols SCIP
1 [build]
2 publish = "target/doc"
3 # Netlify doesn't allow us to download packages via APT, which is needed since
4 # we need libraries from `libapt-pkg-dev`. We get around this by manually
5 # unpacking the deb and including the needed library's path in
6 # CPLUS_INCLUDE_PATH.
7 command = """
8 set -ex
9 packages=('libapt-pkg-dev::https://mirrors.kernel.org/ubuntu/pool/main/a/apt/libapt-pkg-dev_2.4.5_amd64.deb')
10 export CPLUS_INCLUDE_PATH="${PWD}/usr/include"
11
12 for pkg in "${packages[@]}"; do
13 pkgname="$(echo "${pkg}" | sed 's|::.*||')"
14 url="$(echo "${pkg}" | sed 's|.*::||')"
15
16 wget "${url}"
17 ar xf "${pkgname}"_*.deb
18 zstd -df data.tar.zst
19 tar -xf data.tar
20 done
21
22 rustup toolchain install stable
23 cargo doc --no-deps
24
25 # Redirect the root URL to the rust_apt docs.
26 echo '<html><head><meta http-equiv="refresh" content="0; URL=/rust_apt" /></head></html>' > target/doc/index.html
27 """