<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>rust</Name>
        <Homepage>https://www.rust-lang.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <IsA>app</IsA>
        <Summary>Systems programming language focused on safety, speed and concurrency</Summary>
        <Description>Systems programming language focused on safety, speed and concurrency</Description>
        <Archive sha1sum="04e019f59c5296b8b5fe7ce6e52b6e620927f528" type="targz">https://static.rust-lang.org/dist/rustc-1.97.0-src.tar.gz</Archive>
        <!-- Not: İkinci aşamada aşağıdaki satıra ihtiyaç olmayacak. Yoruma çevrilebilir. -->
        <!-- The line below will be unnecessary at phase 2, can be commented out. -->
<!--         <Archive sha1sum="71910a8b555d8d5a2862e157442d20b630bfda50" type="targz" target="rustc-1.95.0-src">https://static.rust-lang.org/dist/rust-1.95.0-x86_64-unknown-linux-gnu.tar.gz</Archive> -->
        <AdditionalFiles>
            <AdditionalFile target="config.toml">bootstrap-config.toml</AdditionalFile>
        </AdditionalFiles>
        <BuildDependencies>
            <Dependency versionFrom="1.96.0">rust</Dependency>
            <Dependency>perl</Dependency>"
            <Dependency versionFrom="21.1.5">llvm</Dependency>
            <Dependency>lld-devel</Dependency>
            <Dependency>llvm-mlir</Dependency>
            <Dependency>cmake</Dependency>
            <Dependency>ninja</Dependency>
            <Dependency>ocaml</Dependency>
            <Dependency>valgrind-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>glibc-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>libssh2-devel</Dependency>
            <Dependency>gdb-devel</Dependency>
            <Dependency>curl-devel</Dependency>
            <Dependency>python3-devel</Dependency>
            <Dependency>libffi-devel</Dependency>
            <Dependency>llvm-clang-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">arch/0003-bootstrap-Workaround-for-system-stage0.patch</Patch>
            <Patch level="1">arch/0004-compiler-Change-LLVM-targets.patch</Patch>
            <Patch level="1">arch/0005-compiler-Use-ld.lld-by-default.patch</Patch>
            <Patch level="1">arch/0006-compiler-Use-aarch64-linux-gnu-gcc-to-link-aarch64-t.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>rust</Name>
        <RuntimeDependencies>
            <Dependency>curl</Dependency>
            <Dependency>lld</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>zstd</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libssh2</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency versionFrom="15.0.7">llvm-libs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/libexec</Path>
            <Path fileType="config">/etc</Path>
            <Path fileType="library">/usr/lib</Path>
            <!--             <Path fileType="data">/usr/share</Path> -->
            <Path fileType="man">/usr/share/man</Path>
            <!--             <Path fileType="doc">/usr/share/doc</Path> -->
            <Path fileType="data">/usr/share/zsh</Path>
        </Files>
    </Package>

    <Package>
        <Name>rust-docs</Name>
        <Summary>Development files for rust</Summary>
        <RuntimeDependencies>
            <Dependency release="current">rust</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="51">
            <Date>2026-07-11</Date>
            <Version>1.97.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="50">
            <Date>2026-07-07</Date>
            <Version>1.96.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="49">
            <Date>2026-06-10</Date>
            <Version>1.96.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="48">
            <Date>2026-05-16</Date>
            <Version>1.95.0</Version>
            <Comment>Rebuild.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="47">
            <Date>2026-04-21</Date>
            <Version>1.95.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="46">
            <Date>2026-03-27</Date>
            <Version>1.94.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="45">
            <Date>2026-01-31</Date>
            <Version>1.93.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2017-09-26</Date>
            <Version>1.20.0</Version>
            <Comment>First release</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
