1DOLLY 72TOOLCHAIN rust-sdk3REQUIRES HOST runtime@04REQUIRES HOST display@05REQUIRES HOST input@06REQUIRES HOST dso@07REQUIRES HOST http@08REQUIRES HOST threads@0910FROM /v0.1.4/Dollyfile-system-build 7997c05ba08220831088b2aa713c86dbf0ded0229bbfa84f411476f00269d9fc11INSTALL /v0.1.4/Dollyfile-zlib 7f3254e8d51bc7edd2fa47b19f3b1e2e43c747476ab93c57654639e4119abde712INSTALL /v0.1.4/Dollyfile-gzip 1be14cb6142500862aa5362445cdfa3c5fc7f4817e775a614754e3dc91ead07913INSTALL /v0.1.4/Dollyfile-curl 173c3c37eeac846ba8caa316c656cb75e5facea793eb9434337550ddaf3d32d114REQUIRES LIB z15REQUIRES LIB curl16REQUIRES TOOL cc17REQUIRES TOOL ar18REQUIRES TOOL tar19REQUIRES TOOL gzip20REQUIRES TOOL cp21REQUIRES TOOL rm22REQUIRES TOOL mkdir2324# The external seed: rustc and its standard library, linked, and Cargo as one25# object. The linker adapter is compiled inside Dolly.26SOURCE /v0.1.4/dist/static/rust/rust-sdk.tar.gz 246381b4cd22a71aace3f9cc32a0429d63a2b42e963a06a7fa79e9ff4acb883b /tmp/rust-sdk.tar.gz27SLOP mkdir -p /opt28SLOP gzip -dc /tmp/rust-sdk.tar.gz | tar -xf - -C /opt29SOURCE /v0.1.4/dist/static/rust/rustc.sh 966c3a6e1863196ca1d44b47552c46bc0e7caa8f096ef385252b3216f2f658d1 /opt/rust-sdk/bin/rustc30SOURCE /v0.1.4/dist/static/rust/rust-linker.c 63c7b7fd5b4a73e7227b1e00ca5f878d45ee40d89b939886f433acb4264577f3 /tmp/rust-linker.c31SLOP cc -O1 /tmp/rust-linker.c -o /opt/rust-sdk/bin/dolly-rust-link32# What the adapter adds to a program that loads Rust libraries: the dl* names33# Rust binds.34SOURCE /v0.1.4/dist/static/rust/dlopen.c cd3f75610360f299acd6ff507900ec2ad0273222465fde4184d59da4b188cc6b /tmp/rust-host/dlopen.c35SLOP CWD /tmp/rust-host cc -O2 -fPIC -c dlopen.c36SLOP CWD /tmp/rust-host ar rcs /opt/rust-sdk/lib/dolly-rust-host.a dlopen.o37# Cargo's libc, libcurl and zlib are this image's.38SLOP cc -pthread /opt/rust-sdk/cargo.o -lcurl -lz -o /usr/bin/cargo39SLOP rm -rf /opt/rust-sdk/cargo.o /tmp/rust-host40SLOP mkdir -p /usr/share/licenses/rust41SLOP cp -R /opt/rust-sdk/licenses/. /usr/share/licenses/rust42SLOP rm /tmp/rust-sdk.tar.gz /tmp/rust-linker.c4344EXPORTS ENV PATH APPEND /opt/rust-sdk/bin45EXPORTS TOOL rustc46EXPORTS TOOL cargo47# Images build once, so rustc's incremental sessions would only be a second48# copy of every object (there are no hard links), in a filesystem that lives in49# kernel memory: the codex build ran out of space at codex-core with them. The50# cargo package, for a session's own projects, keeps them.51EXPORTS ENV CARGO_INCREMENTAL 052# The cc crate's default flags name a target; Dolly's cc has one.53EXPORTS ENV CRATE_CC_NO_DEFAULTS 154EXPORTS FOLDER rust-sdk /opt/rust-sdk55EXPORTS FOLDER rust-licenses /usr/share/licenses/rust56SLOP rustc --version --verbose57SLOP cargo --version58INSTALL /v0.1.4/Dollyfile-display d15ef860730ddefa417080c1d27cc0a26f03d5409c93805e9b3cbc5b6af610115960ENTRY /bin/foreground -i /bin/slop61