1DOLLY 72TOOLCHAIN rust-sdk3REQUIRES HOST runtime@04REQUIRES HOST display@05REQUIRES HOST input@06REQUIRES HOST dso@07REQUIRES HOST http@08REQUIRES HOST threads@0910FROM /v0.1.7/Dollyfile-system-build d1bb50136de0dadf12e3e2af2266c5102e9ab15769e9f607807c44d46323f3a111INSTALL /v0.1.7/Dollyfile-zlib 8de0bd7abb3a8237405fbbe378e6565c995a24694e5a3b55ef24873c5786bdb512INSTALL /v0.1.7/Dollyfile-gzip fe37ea911f935be9f5dc2fcf29fdddba385759e05220a033ebaea81a810a16b513INSTALL /v0.1.7/Dollyfile-curl 6307c6eac2d990657b961ba9ea05fc7f5c261d2f2c2c8662a9876b45ac210f3c14REQUIRES 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.7/dist/static/rust/rust-sdk.tar.gz d0a8930cd6a049f86da9a1fa8270b3d1ea191d59de43866238d9ed335b3668a1 /tmp/rust-sdk.tar.gz27SLOP mkdir -p /opt28SLOP gzip -dc /tmp/rust-sdk.tar.gz | tar -xf - -C /opt29SOURCE /v0.1.7/dist/static/rust/rustc.sh 03589f0b44268b0bb22c1d5db37aa58cd882a8d2dae81902a23ab2385c3dde6e /opt/rust-sdk/bin/rustc30SOURCE /v0.1.7/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.7/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 /bin:/usr/bin:/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.7/Dollyfile-display a6680af8ee3a48c935c74f701bdd3b31b15ea2aa9e7d98cd8776d9509c81fbd25960ENTRY /bin/foreground -i /bin/slop61