From b80e89f413b09a18fe5c30fa5bbcbeb92c443fdf Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 15:11:18 +0600 Subject: [PATCH 001/115] ci(aur): add aur checks fixes #280 --- .github/workflows/aur-check.yml | 62 +++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/aur-check.yml diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml new file mode 100644 index 00000000..e77ae94b --- /dev/null +++ b/.github/workflows/aur-check.yml @@ -0,0 +1,62 @@ +name: Arch Linux Container Validation + +on: + pull_request: + paths: + - '.github/workflows/aur-check.yml' + - 'aur/**' + push: + paths: + - '.github/workflows/aur-check.yml' + - 'aur/**' + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +jobs: + archlinux-validation: + name: Arch Linux Container Build & Test + runs-on: ubuntu-latest + container: + image: archlinux:latest + + steps: + - name: Install base dependencies + run: | + pacman -Syu --noconfirm + + pacman -S --noconfirm \ + base-devel \ + git \ + curl \ + which \ + pkg-config \ + namcap \ + shellcheck + + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Validate PKGBUILD files + run: | + for pkgbuild in aur/PKGBUILD*; do + if [ -f "$pkgbuild" ]; then + echo "Validating $pkgbuild" + + shellcheck --shell=bash --exclude=SC2034,SC2154,SC2164 "$pkgbuild" + + temp_dir=$(mktemp -d) + cp "$pkgbuild" "$temp_dir/PKGBUILD" + cd "$temp_dir" + + namcap PKGBUILD + + makepkg -si --noconfirm + + cd / + rm -rf "$temp_dir" + + echo "✅ $pkgbuild validation completed" + fi + done From 36cbaf6a45d3c7c4922d6ff06a1229c7b98969c9 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 15:13:39 +0600 Subject: [PATCH 002/115] fix(aur): pkgbuild --- aur/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index a32278aa..679e3857 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -28,7 +28,7 @@ build() { export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.87.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl - cargo build --frozen --release --all-features --target $(rustc --print=host-tuple) + cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } check() { @@ -43,7 +43,7 @@ package() { find target -type d | grep -E 'rustowl-build-time-out$' | xargs -I % cp -r % ./ mkdir sysroot ACTIVE_TOOLCHAIN="$(rustup show active-toolchain | awk '{ print $1 }')" - cp -r "$(rustc --print=sysroot)" sysroot/$ACTIVE_TOOLCHAIN + cp -r "$(rustc --print=sysroot)" sysroot/"$ACTIVE_TOOLCHAIN" find sysroot -type f | grep -v -E '\.(rlib|so|dylib|dll)$' | xargs rm -rf find sysroot -depth -type d -empty -exec rm -rf {} \; install -d -m 755 "$pkgdir/opt/rustowl" From dd94d464b50234cc32ef3aef85d7f52e3db87ee2 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 15:14:23 +0600 Subject: [PATCH 003/115] fix(aur): pkgbuild-git --- aur/PKGBUILD-GIT | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index b9ae48b1..86420878 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -32,7 +32,7 @@ build() { export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.87.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl - cargo build --frozen --release --all-features --target $(rustc --print=host-tuple) + cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } check() { @@ -47,7 +47,7 @@ package() { find target -type d | grep -E 'rustowl-build-time-out$' | xargs -I % cp -r % ./ mkdir sysroot ACTIVE_TOOLCHAIN="$(rustup show active-toolchain | awk '{ print $1 }')" - cp -r "$(rustc --print=sysroot)" sysroot/$ACTIVE_TOOLCHAIN + cp -r "$(rustc --print=sysroot)" sysroot/"$ACTIVE_TOOLCHAIN" find sysroot -type f | grep -v -E '\.(rlib|so|dylib|dll)$' | xargs rm -rf find sysroot -depth -type d -empty -exec rm -rf {} \; install -d -m 755 "$pkgdir/opt/rustowl" From 19cf19a7c1327b52ba5e0cd106fde1264b5cd41e Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 15:21:47 +0600 Subject: [PATCH 004/115] fix --- .github/workflows/aur-check.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index e77ae94b..11dfd8c9 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -33,7 +33,14 @@ jobs: which \ pkg-config \ namcap \ - shellcheck + shellcheck \ + sudo + + - name: Setup build user + run: | + useradd -m -s /bin/bash builder + + echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers - name: Checkout repository uses: actions/checkout@v4 @@ -43,18 +50,23 @@ jobs: for pkgbuild in aur/PKGBUILD*; do if [ -f "$pkgbuild" ]; then echo "Validating $pkgbuild" - + + echo "============ Running Shellcheck ============" shellcheck --shell=bash --exclude=SC2034,SC2154,SC2164 "$pkgbuild" temp_dir=$(mktemp -d) cp "$pkgbuild" "$temp_dir/PKGBUILD" - cd "$temp_dir" - - namcap PKGBUILD - - makepkg -si --noconfirm + chown -R builder:builder "$temp_dir" + + echo "============ Running Namcap ============" + namcap "$pkgbuild" + + echo "============ Running Makepkg ============" + sudo -u builder bash -c " + cd '$temp_dir' + makepkg -si --noconfirm + " - cd / rm -rf "$temp_dir" echo "✅ $pkgbuild validation completed" From 24e4b888624ca9628eadc12e439e8936e511c97b Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 15:24:21 +0600 Subject: [PATCH 005/115] add some nice colors --- .github/workflows/aur-check.yml | 52 +++++++++++++++++++++++++-------- 1 file changed, 40 insertions(+), 12 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 11dfd8c9..f4fe0140 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -47,28 +47,56 @@ jobs: - name: Validate PKGBUILD files run: | + # Color codes + RED='\033[0;31m' + GREEN='\033[0;32m' + YELLOW='\033[1;33m' + BLUE='\033[0;34m' + MAGENTA='\033[0;35m' + CYAN='\033[0;36m' + WHITE='\033[1;37m' + NC='\033[0m' # No Color + for pkgbuild in aur/PKGBUILD*; do if [ -f "$pkgbuild" ]; then - echo "Validating $pkgbuild" - - echo "============ Running Shellcheck ============" - shellcheck --shell=bash --exclude=SC2034,SC2154,SC2164 "$pkgbuild" + echo -e "${CYAN}============ Validating${NC} ${WHITE}$pkgbuild${NC} ${CYAN}============${NC}" + + echo -e "${YELLOW}============ Running Shellcheck ============${NC}" + if shellcheck --shell=bash --exclude=SC2034,SC2154,SC2164 "$pkgbuild"; then + echo -e "${GREEN}✅ Shellcheck passed${NC}" + else + echo -e "${RED}❌ Shellcheck failed${NC}" + exit 1 + fi temp_dir=$(mktemp -d) cp "$pkgbuild" "$temp_dir/PKGBUILD" chown -R builder:builder "$temp_dir" - - echo "============ Running Namcap ============" - namcap "$pkgbuild" - - echo "============ Running Makepkg ============" - sudo -u builder bash -c " + + echo -e "${BLUE}============ Running Namcap ============${NC}" + if namcap "$pkgbuild"; then + echo -e "${GREEN}✅ Namcap passed${NC}" + else + echo -e "${RED}❌ Namcap failed${NC}" + exit 1 + fi + + echo -e "${MAGENTA}============ Running Makepkg ============${NC}" + if sudo -u builder bash -c " cd '$temp_dir' makepkg -si --noconfirm - " + "; then + echo -e "${GREEN}✅ Makepkg completed successfully${NC}" + else + echo -e "${RED}❌ Makepkg failed${NC}" + exit 1 + fi rm -rf "$temp_dir" - echo "✅ $pkgbuild validation completed" + echo -e "${GREEN}🎉 $pkgbuild validation completed successfully!${NC}" + echo "" fi done + + echo -e "${GREEN}🚀 All PKGBUILD files validated successfully!${NC}" From 26a75ae9d03cfe259b890cfe92da044dce8b94d2 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 15:25:53 +0600 Subject: [PATCH 006/115] remove unused env --- .github/workflows/aur-check.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index f4fe0140..8ca295db 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -11,9 +11,6 @@ on: - 'aur/**' workflow_dispatch: -env: - CARGO_TERM_COLOR: always - jobs: archlinux-validation: name: Arch Linux Container Build & Test From d4ff3bf2913ff8f7478f6742b2812709fca0e34a Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 15:28:56 +0600 Subject: [PATCH 007/115] add clang --- aur/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 679e3857..744356d5 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('rustup') +makedepends=('rustup' 'clang') depends=() conflicts=('rustowl-git' 'rustowl-bin') arch=('any') From bcd54656d775ee20a4f6df15f11cee892a938271 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 15:29:23 +0600 Subject: [PATCH 008/115] remove zig and use clang --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 86420878..b2c2d22b 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'zig=0.13.0') +makedepends=('git' 'rustup' 'clang') arch=('any') source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') From 5e05739ef9562b574cdef99a109a682f5580539a Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 15:50:59 +0600 Subject: [PATCH 009/115] gcc --- aur/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 744356d5..79a356d5 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('rustup' 'clang') +makedepends=('rustup' 'gcc') depends=() conflicts=('rustowl-git' 'rustowl-bin') arch=('any') From 3fd32d738b4f7068ed6a85b5143e59191f1a5026 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 15:51:13 +0600 Subject: [PATCH 010/115] gcc --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index b2c2d22b..0ec77647 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'clang') +makedepends=('git' 'rustup' 'gcc') arch=('any') source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') From 3825cbda49e12d594e807ed5d8a21c329f9cbeae Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 20:33:26 +0600 Subject: [PATCH 011/115] setup aur correctly --- aur/PKGBUILD | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 79a356d5..e6a343f1 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('rustup' 'gcc') +makedepends=('rustup' 'clang' 'perl') depends=() conflicts=('rustowl-git' 'rustowl-bin') arch=('any') @@ -16,6 +16,9 @@ sha256sums=('fa120643aeb48061eb32a7c993dabff88aa4e9d0b32f8ab0f3289b3fb2cf5744') prepare() { cd rustowl-${pkgver} + export RUSTFLAGS="-Cforce-frame-pointers=yes -Clinker=clang" + export CC=clang + export CXX=clang++ export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.87.0 rustup component add rust-src rustc-dev llvm-tools @@ -24,6 +27,9 @@ prepare() { build() { cd rustowl-${pkgver} + export RUSTFLAGS="-Cforce-frame-pointers=yes -Clinker=clang" + export CC=clang + export CXX=clang++ export CARGO_TARGET_DIR=target export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.87.0 @@ -32,6 +38,9 @@ build() { } check() { + export RUSTFLAGS="-Cforce-frame-pointers=yes -Clinker=clang" + export CC=clang + export CXX=clang++ cd rustowl-${pkgver} export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.87.0 @@ -39,6 +48,9 @@ check() { } package() { + export RUSTFLAGS="-Cforce-frame-pointers=yes -Clinker=clang" + export CC=clang + export CXX=clang++ cd rustowl-${pkgver} find target -type d | grep -E 'rustowl-build-time-out$' | xargs -I % cp -r % ./ mkdir sysroot From 2489524a09b07bf60d8da992e917b7ba704c314e Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 20:34:37 +0600 Subject: [PATCH 012/115] add perl too (ring needs) --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 0ec77647..1df8c5df 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'gcc') +makedepends=('git' 'rustup' 'perl') arch=('any') source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') From 3938df4c2dd080655c7d67a9aafe1b063985a437 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 20:35:53 +0600 Subject: [PATCH 013/115] fix --- aur/PKGBUILD | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index e6a343f1..fc74a73a 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('rustup' 'clang' 'perl') +makedepends=('rustup' 'perl' 'gcc') depends=() conflicts=('rustowl-git' 'rustowl-bin') arch=('any') @@ -16,9 +16,6 @@ sha256sums=('fa120643aeb48061eb32a7c993dabff88aa4e9d0b32f8ab0f3289b3fb2cf5744') prepare() { cd rustowl-${pkgver} - export RUSTFLAGS="-Cforce-frame-pointers=yes -Clinker=clang" - export CC=clang - export CXX=clang++ export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.87.0 rustup component add rust-src rustc-dev llvm-tools @@ -27,9 +24,6 @@ prepare() { build() { cd rustowl-${pkgver} - export RUSTFLAGS="-Cforce-frame-pointers=yes -Clinker=clang" - export CC=clang - export CXX=clang++ export CARGO_TARGET_DIR=target export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.87.0 @@ -38,9 +32,6 @@ build() { } check() { - export RUSTFLAGS="-Cforce-frame-pointers=yes -Clinker=clang" - export CC=clang - export CXX=clang++ cd rustowl-${pkgver} export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.87.0 @@ -48,9 +39,6 @@ check() { } package() { - export RUSTFLAGS="-Cforce-frame-pointers=yes -Clinker=clang" - export CC=clang - export CXX=clang++ cd rustowl-${pkgver} find target -type d | grep -E 'rustowl-build-time-out$' | xargs -I % cp -r % ./ mkdir sysroot From 1de8ac73bbff3982acca3366a745917621085a58 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 20:36:17 +0600 Subject: [PATCH 014/115] another fix --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 1df8c5df..26d32887 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'perl') +makedepends=('git' 'rustup' 'perl' 'gcc') arch=('any') source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') From d0c354a358de66f54970825aed50960fec923081 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 20:55:45 +0600 Subject: [PATCH 015/115] fix --- .github/workflows/aur-check.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 8ca295db..6c0eee36 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -9,6 +9,8 @@ on: paths: - '.github/workflows/aur-check.yml' - 'aur/**' + branches: + - main workflow_dispatch: jobs: @@ -44,6 +46,8 @@ jobs: - name: Validate PKGBUILD files run: | + set -e + # Color codes RED='\033[0;31m' GREEN='\033[0;32m' @@ -55,23 +59,21 @@ jobs: NC='\033[0m' # No Color for pkgbuild in aur/PKGBUILD*; do - if [ -f "$pkgbuild" ]; then - echo -e "${CYAN}============ Validating${NC} ${WHITE}$pkgbuild${NC} ${CYAN}============${NC}" + if [ -f "${pkgbuild}" ]; then + echo -e "${CYAN}============ Validating [${NC}${pkgbuild}${CYAN}] ============${NC}" echo -e "${YELLOW}============ Running Shellcheck ============${NC}" - if shellcheck --shell=bash --exclude=SC2034,SC2154,SC2164 "$pkgbuild"; then + if shellcheck --shell=bash --exclude=SC2034,SC2154,SC2164 "${pkgbuild}"; then echo -e "${GREEN}✅ Shellcheck passed${NC}" else echo -e "${RED}❌ Shellcheck failed${NC}" exit 1 fi - temp_dir=$(mktemp -d) - cp "$pkgbuild" "$temp_dir/PKGBUILD" - chown -R builder:builder "$temp_dir" + chown -R builder:builder "${pkgbuild}" echo -e "${BLUE}============ Running Namcap ============${NC}" - if namcap "$pkgbuild"; then + if namcap "${pkgbuild}"; then echo -e "${GREEN}✅ Namcap passed${NC}" else echo -e "${RED}❌ Namcap failed${NC}" @@ -79,9 +81,10 @@ jobs: fi echo -e "${MAGENTA}============ Running Makepkg ============${NC}" + if sudo -u builder bash -c " - cd '$temp_dir' - makepkg -si --noconfirm + set -e + makepkg -scf --noconfirm -p ${pkgbuild} "; then echo -e "${GREEN}✅ Makepkg completed successfully${NC}" else @@ -89,7 +92,6 @@ jobs: exit 1 fi - rm -rf "$temp_dir" echo -e "${GREEN}🎉 $pkgbuild validation completed successfully!${NC}" echo "" From 73b02f6da4d24509c4c9868a7a7499450b2d3ab2 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 20:58:02 +0600 Subject: [PATCH 016/115] fix --- .github/workflows/aur-check.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 6c0eee36..ce8264b7 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -71,6 +71,7 @@ jobs: fi chown -R builder:builder "${pkgbuild}" + chown -R builder:builder "$(dirname ${pkgbuild})" echo -e "${BLUE}============ Running Namcap ============${NC}" if namcap "${pkgbuild}"; then From 85fc240e9b5e3dc44aff57020f09b193be3585ea Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 21:08:12 +0600 Subject: [PATCH 017/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index ce8264b7..c1075536 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -72,6 +72,7 @@ jobs: chown -R builder:builder "${pkgbuild}" chown -R builder:builder "$(dirname ${pkgbuild})" + chown -R builder:builder . echo -e "${BLUE}============ Running Namcap ============${NC}" if namcap "${pkgbuild}"; then From 22c71a97b7b285a29f7f85e02a1c9a56845785a2 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 21:13:53 +0600 Subject: [PATCH 018/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index c1075536..47723254 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -72,7 +72,6 @@ jobs: chown -R builder:builder "${pkgbuild}" chown -R builder:builder "$(dirname ${pkgbuild})" - chown -R builder:builder . echo -e "${BLUE}============ Running Namcap ============${NC}" if namcap "${pkgbuild}"; then @@ -86,7 +85,8 @@ jobs: if sudo -u builder bash -c " set -e - makepkg -scf --noconfirm -p ${pkgbuild} + cd "$(dirname ${pkgbuild})" + makepkg -scf --noconfirm -p "$(basename ${pkgbuild})" "; then echo -e "${GREEN}✅ Makepkg completed successfully${NC}" else From d8da02c3a74dd4a794abe48198259119d49732aa Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 21:53:19 +0600 Subject: [PATCH 019/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 47723254..735bce24 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -58,11 +58,14 @@ jobs: WHITE='\033[1;37m' NC='\033[0m' # No Color - for pkgbuild in aur/PKGBUILD*; do - if [ -f "${pkgbuild}" ]; then - echo -e "${CYAN}============ Validating [${NC}${pkgbuild}${CYAN}] ============${NC}" + for pathname in aur/PKGBUILD*; do + if [ -f "${pathname}" ]; then + filename=$(basename ${pathname}) + dirname=$(dirname ${pathname}) - echo -e "${YELLOW}============ Running Shellcheck ============${NC}" + echo -e "${CYAN}============ Validating [${NC}${filename}${CYAN}] ============${NC}\n\n" + + echo -e "${YELLOW}============ Running Shellcheck On${NC} ${filename} ${YELLOW}============${NC}\n" if shellcheck --shell=bash --exclude=SC2034,SC2154,SC2164 "${pkgbuild}"; then echo -e "${GREEN}✅ Shellcheck passed${NC}" else @@ -70,10 +73,10 @@ jobs: exit 1 fi - chown -R builder:builder "${pkgbuild}" - chown -R builder:builder "$(dirname ${pkgbuild})" + chown -R builder:builder "${pathname}" + chown -R builder:builder "${dirname}" - echo -e "${BLUE}============ Running Namcap ============${NC}" + echo -e "${BLUE}============ Running Namcap On${NC} ${filename} ${BLUE}============${NC}\n" if namcap "${pkgbuild}"; then echo -e "${GREEN}✅ Namcap passed${NC}" else @@ -81,12 +84,12 @@ jobs: exit 1 fi - echo -e "${MAGENTA}============ Running Makepkg ============${NC}" + echo -e "${MAGENTA}============ Running Makepkg On${NC} ${filename} ${MAGENTA}============${NC}" if sudo -u builder bash -c " set -e - cd "$(dirname ${pkgbuild})" - makepkg -scf --noconfirm -p "$(basename ${pkgbuild})" + cd "${dirname}" + makepkg -scf --noconfirm -p "${filename}" "; then echo -e "${GREEN}✅ Makepkg completed successfully${NC}" else @@ -95,7 +98,7 @@ jobs: fi - echo -e "${GREEN}🎉 $pkgbuild validation completed successfully!${NC}" + echo -e "${GREEN}🎉 ${filename} Validation Completed Successfully!${NC}" echo "" fi done From 6958d05adade7cde47369104dd62bb2e1208af3e Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 21:58:08 +0600 Subject: [PATCH 020/115] fix --- .github/workflows/aur-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 735bce24..8b955d93 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -66,7 +66,7 @@ jobs: echo -e "${CYAN}============ Validating [${NC}${filename}${CYAN}] ============${NC}\n\n" echo -e "${YELLOW}============ Running Shellcheck On${NC} ${filename} ${YELLOW}============${NC}\n" - if shellcheck --shell=bash --exclude=SC2034,SC2154,SC2164 "${pkgbuild}"; then + if shellcheck --shell=bash --exclude=SC2034,SC2154,SC2164 "${pathname}"; then echo -e "${GREEN}✅ Shellcheck passed${NC}" else echo -e "${RED}❌ Shellcheck failed${NC}" @@ -77,7 +77,7 @@ jobs: chown -R builder:builder "${dirname}" echo -e "${BLUE}============ Running Namcap On${NC} ${filename} ${BLUE}============${NC}\n" - if namcap "${pkgbuild}"; then + if namcap "${pathname}"; then echo -e "${GREEN}✅ Namcap passed${NC}" else echo -e "${RED}❌ Namcap failed${NC}" From ff7de416142339206ed477e99be6b4d9dd5d5b1f Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 22:38:50 +0600 Subject: [PATCH 021/115] remove things to make sure the makedepends is precise --- .github/workflows/aur-check.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 8b955d93..ecf9933d 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -26,14 +26,8 @@ jobs: pacman -Syu --noconfirm pacman -S --noconfirm \ - base-devel \ - git \ - curl \ - which \ - pkg-config \ namcap \ - shellcheck \ - sudo + shellcheck - name: Setup build user run: | From 3db6bbb8bc453e41df7de1a5384900862e4bc058 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 22:40:21 +0600 Subject: [PATCH 022/115] testing --- aur/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index fc74a73a..4701d6fc 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('rustup' 'perl' 'gcc') +makedepends=('rustup' 'gcc' 'llvm' 'clang') depends=() conflicts=('rustowl-git' 'rustowl-bin') arch=('any') From 1484860c4ac68cfbb4bf35430158d8e35a499b90 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 22:40:36 +0600 Subject: [PATCH 023/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 26d32887..22d502a8 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'perl' 'gcc') +makedepends=('git' 'rustup' 'gcc' 'llvm' 'clang') arch=('any') source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') From d4c8dd11a06e81e1b76b11adc19b579fafa5c710 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 22:41:34 +0600 Subject: [PATCH 024/115] install sudo also --- .github/workflows/aur-check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index ecf9933d..26edd9e4 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -27,7 +27,8 @@ jobs: pacman -S --noconfirm \ namcap \ - shellcheck + shellcheck \ + sudo - name: Setup build user run: | From 4f0016364a9dee04768884cbbcb182e59e09b5f9 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 22:44:43 +0600 Subject: [PATCH 025/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 26edd9e4..574a1a5c 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -28,6 +28,8 @@ jobs: pacman -S --noconfirm \ namcap \ shellcheck \ + debugedit \ + fakeroot \ sudo - name: Setup build user From fa8ddabd53ee64fde605fd6bb84b7a9cbec0843b Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 22:50:29 +0600 Subject: [PATCH 026/115] Update PKGBUILD --- aur/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 4701d6fc..519828a6 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('rustup' 'gcc' 'llvm' 'clang') +makedepends=('rustup' 'llvm' 'clang' 'cmake' 'make') depends=() conflicts=('rustowl-git' 'rustowl-bin') arch=('any') From b0a9d18792ab975c733e66df7ad5767f11e3e862 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 27 Jun 2025 22:50:53 +0600 Subject: [PATCH 027/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 22d502a8..31d75a6e 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'gcc' 'llvm' 'clang') +makedepends=('git' 'rustup' 'llvm' 'clang' 'make' 'cmake') arch=('any') source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') From 5651916bb5a9872594e8543628571da872a60888 Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Sat, 28 Jun 2025 15:17:02 +0600 Subject: [PATCH 028/115] tets --- .github/workflows/aur-check.yml | 34 ++++++++++++++++++--------------- aur/PKGBUILD | 2 +- aur/PKGBUILD-GIT | 2 +- 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 574a1a5c..e0fbf1c9 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -21,6 +21,9 @@ jobs: image: archlinux:latest steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install base dependencies run: | pacman -Syu --noconfirm @@ -30,21 +33,23 @@ jobs: shellcheck \ debugedit \ fakeroot \ + # For testing + openssl \ + openssl-devel \ + pkg-config \ + nasm \ sudo - + - name: Setup build user run: | useradd -m -s /bin/bash builder - + echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers - - - name: Checkout repository - uses: actions/checkout@v4 - name: Validate PKGBUILD files run: | set -e - + # Color codes RED='\033[0;31m' GREEN='\033[0;32m' @@ -54,14 +59,14 @@ jobs: CYAN='\033[0;36m' WHITE='\033[1;37m' NC='\033[0m' # No Color - + for pathname in aur/PKGBUILD*; do if [ -f "${pathname}" ]; then filename=$(basename ${pathname}) dirname=$(dirname ${pathname}) - + echo -e "${CYAN}============ Validating [${NC}${filename}${CYAN}] ============${NC}\n\n" - + echo -e "${YELLOW}============ Running Shellcheck On${NC} ${filename} ${YELLOW}============${NC}\n" if shellcheck --shell=bash --exclude=SC2034,SC2154,SC2164 "${pathname}"; then echo -e "${GREEN}✅ Shellcheck passed${NC}" @@ -69,10 +74,10 @@ jobs: echo -e "${RED}❌ Shellcheck failed${NC}" exit 1 fi - + chown -R builder:builder "${pathname}" chown -R builder:builder "${dirname}" - + echo -e "${BLUE}============ Running Namcap On${NC} ${filename} ${BLUE}============${NC}\n" if namcap "${pathname}"; then echo -e "${GREEN}✅ Namcap passed${NC}" @@ -80,7 +85,7 @@ jobs: echo -e "${RED}❌ Namcap failed${NC}" exit 1 fi - + echo -e "${MAGENTA}============ Running Makepkg On${NC} ${filename} ${MAGENTA}============${NC}" if sudo -u builder bash -c " @@ -93,11 +98,10 @@ jobs: echo -e "${RED}❌ Makepkg failed${NC}" exit 1 fi - - + echo -e "${GREEN}🎉 ${filename} Validation Completed Successfully!${NC}" echo "" fi done - + echo -e "${GREEN}🚀 All PKGBUILD files validated successfully!${NC}" diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 519828a6..312c5131 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('rustup' 'llvm' 'clang' 'cmake' 'make') +makedepends=('rustup' 'gcc' 'cmake' 'make') depends=() conflicts=('rustowl-git' 'rustowl-bin') arch=('any') diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 31d75a6e..998e7709 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'llvm' 'clang' 'make' 'cmake') +makedepends=('git' 'rustup' 'gcc' 'make' 'cmake') arch=('any') source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') From b67e926017f8d5561b8266243f4100d2a6ff760c Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sat, 28 Jun 2025 15:40:28 +0600 Subject: [PATCH 029/115] re --- .github/workflows/aur-check.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index e0fbf1c9..b9444690 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -35,11 +35,19 @@ jobs: fakeroot \ # For testing openssl \ - openssl-devel \ pkg-config \ nasm \ sudo + - name: Cache Pacman Dependencies + uses: actions/cache@v4 + with: + path: /var/cache/pacman/pkg + key: ${{ runner.os }}-pacman-${{ hashFiles('/etc/pacman.conf', '/etc/makepkg.config', '/etc/makepkg/rust.conf') }} + restore-keys: | + ${{ runner.os }}-pacman- + + - name: Setup build user run: | useradd -m -s /bin/bash builder From 387567aad050ee755ec658abb66262f6661254f3 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sat, 28 Jun 2025 15:44:33 +0600 Subject: [PATCH 030/115] lsl --- .github/workflows/aur-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index b9444690..c79212f1 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -35,7 +35,7 @@ jobs: fakeroot \ # For testing openssl \ - pkg-config \ + pkgconf \ nasm \ sudo From 156708f442cc7e9b135224e42c2b1f26a732eb5e Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sat, 28 Jun 2025 15:47:16 +0600 Subject: [PATCH 031/115] ;s;ss;s; --- .github/workflows/aur-check.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index c79212f1..b518a877 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -33,7 +33,6 @@ jobs: shellcheck \ debugedit \ fakeroot \ - # For testing openssl \ pkgconf \ nasm \ From 0dd976cc4719d54ec135d35adfe5e5100170f275 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sat, 28 Jun 2025 15:48:24 +0600 Subject: [PATCH 032/115] change --- .github/workflows/aur-check.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index b518a877..1d0b52c7 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -24,6 +24,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Cache Pacman Dependencies + uses: actions/cache@v4 + with: + path: /var/cache/pacman/pkg + key: ${{ runner.os }}-pacman-${{ hashFiles('/etc/pacman.conf', '/etc/makepkg.config', '/etc/makepkg/rust.conf') }} + restore-keys: | + ${{ runner.os }}-pacman- + - name: Install base dependencies run: | pacman -Syu --noconfirm @@ -38,15 +46,6 @@ jobs: nasm \ sudo - - name: Cache Pacman Dependencies - uses: actions/cache@v4 - with: - path: /var/cache/pacman/pkg - key: ${{ runner.os }}-pacman-${{ hashFiles('/etc/pacman.conf', '/etc/makepkg.config', '/etc/makepkg/rust.conf') }} - restore-keys: | - ${{ runner.os }}-pacman- - - - name: Setup build user run: | useradd -m -s /bin/bash builder From d76e1f37162d9c0d4accadc52c996bcc4ecedc6a Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sat, 28 Jun 2025 15:56:21 +0600 Subject: [PATCH 033/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 1d0b52c7..527f2fa4 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -41,9 +41,6 @@ jobs: shellcheck \ debugedit \ fakeroot \ - openssl \ - pkgconf \ - nasm \ sudo - name: Setup build user From ca3d5776f6c9fef6ee8bee282ed9b7d2d7ad85e7 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sat, 28 Jun 2025 15:57:05 +0600 Subject: [PATCH 034/115] i am fed up --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 31ea4050..8f88f1c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ process_alive = "0.1.1" cargo_metadata = "0.20.0" uuid = { version = "1", features = ["v4"] } clap = { version = "4.5.40", features = ["cargo", "derive"] } -reqwest = { version = "0.12.19", default-features = false, features = ["http2", "rustls-tls-native-roots"] } +reqwest = { version = "0.12.19", default-features = false, features = ["http2", "native-tls-vendored"] } clap_complete_nushell = "4.5.7" clap_complete = "4.5.54" flate2 = "1.1.2" From 543dd0b6c5de6ad2f467c25aa713461fecf4bb11 Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Sat, 28 Jun 2025 16:22:27 +0600 Subject: [PATCH 035/115] test --- Cargo.lock | 339 +++++++++++++++++++++++------------------------------ Cargo.toml | 2 +- 2 files changed, 149 insertions(+), 192 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ecca517d..59ee62b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -180,9 +180,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.18.1" +version = "3.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "793db76d6187cd04dff33004d8e6c9cc4e05cd330500379d2394209271b4aeee" +checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" [[package]] name = "bytes" @@ -281,12 +281,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268" -[[package]] -name = "cfg_aliases" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" - [[package]] name = "ciborium" version = "0.2.2" @@ -417,9 +411,9 @@ checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" [[package]] name = "core-foundation" -version = "0.10.1" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" dependencies = [ "core-foundation-sys", "libc", @@ -509,9 +503,9 @@ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" [[package]] name = "crunchy" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" [[package]] name = "crypto-common" @@ -622,6 +616,12 @@ dependencies = [ "windows-sys 0.60.2", ] +[[package]] +name = "fastrand" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" + [[package]] name = "filetime" version = "0.2.25" @@ -651,6 +651,21 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + [[package]] name = "form_urlencoded" version = "1.2.1" @@ -754,10 +769,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" dependencies = [ "cfg-if", - "js-sys", "libc", "wasi 0.11.1+wasi-snapshot-preview1", - "wasm-bindgen", ] [[package]] @@ -906,13 +919,28 @@ dependencies = [ "hyper", "hyper-util", "rustls", - "rustls-native-certs", "rustls-pki-types", "tokio", "tokio-rustls", "tower-service", ] +[[package]] +name = "hyper-tls" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" +dependencies = [ + "bytes", + "http-body-util", + "hyper", + "hyper-util", + "native-tls", + "tokio", + "tokio-native-tls", + "tower-service", +] + [[package]] name = "hyper-util" version = "0.1.14" @@ -1046,9 +1074,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.9.0" +version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e" +checksum = "fe4cd85333e22411419a0bcae1297d25e58c9443848b11dc6a86fefe8c78a661" dependencies = [ "equivalent", "hashbrown 0.15.4", @@ -1174,9 +1202,9 @@ dependencies = [ [[package]] name = "libredox" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" +checksum = "1580801010e535496706ba011c15f8532df6b42297d2e471fec38ceadd8c0638" dependencies = [ "bitflags 2.9.1", "libc", @@ -1220,12 +1248,6 @@ version = "0.4.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" -[[package]] -name = "lru-slab" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" - [[package]] name = "lsp-types" version = "0.94.1" @@ -1274,6 +1296,23 @@ dependencies = [ "windows-sys 0.59.0", ] +[[package]] +name = "native-tls" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + [[package]] name = "num-conv" version = "0.1.0" @@ -1325,12 +1364,60 @@ version = "11.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e" +[[package]] +name = "openssl" +version = "0.10.73" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8505734d46c8ab1e19a1dce3aef597ad87dcb4c37e7188231769bd6bd51cebf8" +dependencies = [ + "bitflags 2.9.1", + "cfg-if", + "foreign-types", + "libc", + "once_cell", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "openssl-probe" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" +[[package]] +name = "openssl-src" +version = "300.5.0+3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8ce546f549326b0e6052b649198487d91320875da901e7bd11a06d1ee3f9c2f" +dependencies = [ + "cc", +] + +[[package]] +name = "openssl-sys" +version = "0.9.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90096e2e47630d78b7d1c20952dc621f957103f8bc2c8359ec81290d75238571" +dependencies = [ + "cc", + "libc", + "openssl-src", + "pkg-config", + "vcpkg", +] + [[package]] name = "ordered-float" version = "2.10.1" @@ -1450,15 +1537,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" -[[package]] -name = "ppv-lite86" -version = "0.2.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" -dependencies = [ - "zerocopy", -] - [[package]] name = "proc-macro2" version = "1.0.95" @@ -1478,61 +1556,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "quinn" -version = "0.11.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "626214629cda6781b6dc1d316ba307189c85ba657213ce642d9c77670f8202c8" -dependencies = [ - "bytes", - "cfg_aliases", - "pin-project-lite", - "quinn-proto", - "quinn-udp", - "rustc-hash", - "rustls", - "socket2", - "thiserror 2.0.12", - "tokio", - "tracing", - "web-time", -] - -[[package]] -name = "quinn-proto" -version = "0.11.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49df843a9161c85bb8aae55f101bc0bac8bcafd637a620d9122fd7e0b2f7422e" -dependencies = [ - "bytes", - "getrandom 0.3.3", - "lru-slab", - "rand", - "ring", - "rustc-hash", - "rustls", - "rustls-pki-types", - "slab", - "thiserror 2.0.12", - "tinyvec", - "tracing", - "web-time", -] - -[[package]] -name = "quinn-udp" -version = "0.5.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcebb1209ee276352ef14ff8732e24cc2b02bbac986cd74a4c81bcb2f9881970" -dependencies = [ - "cfg_aliases", - "libc", - "once_cell", - "socket2", - "tracing", - "windows-sys 0.59.0", -] - [[package]] name = "quote" version = "1.0.40" @@ -1548,35 +1571,6 @@ version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" -[[package]] -name = "rand" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97" -dependencies = [ - "rand_chacha", - "rand_core", -] - -[[package]] -name = "rand_chacha" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" -dependencies = [ - "ppv-lite86", - "rand_core", -] - -[[package]] -name = "rand_core" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" -dependencies = [ - "getrandom 0.3.3", -] - [[package]] name = "rayon" version = "1.10.0" @@ -1650,21 +1644,20 @@ dependencies = [ "http-body-util", "hyper", "hyper-rustls", + "hyper-tls", "hyper-util", "js-sys", "log", + "native-tls", "percent-encoding", "pin-project-lite", - "quinn", - "rustls", - "rustls-native-certs", "rustls-pki-types", "serde", "serde_json", "serde_urlencoded", "sync_wrapper", "tokio", - "tokio-rustls", + "tokio-native-tls", "tower 0.5.2", "tower-http", "tower-service", @@ -1700,12 +1693,6 @@ version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "989e6739f80c4ad5b13e0fd7fe89531180375b18520cc8c82080e4dc4035b84f" -[[package]] -name = "rustc-hash" -version = "2.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" - [[package]] name = "rustix" version = "1.0.7" @@ -1726,32 +1713,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7160e3e10bf4535308537f3c4e1641468cd0e485175d6163087c0393c7d46643" dependencies = [ "once_cell", - "ring", "rustls-pki-types", "rustls-webpki", "subtle", "zeroize", ] -[[package]] -name = "rustls-native-certs" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcff2dd52b58a8d98a70243663a0d234c4e2b79235637849d15913394a247d3" -dependencies = [ - "openssl-probe", - "rustls-pki-types", - "schannel", - "security-framework", -] - [[package]] name = "rustls-pki-types" version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "229a4a4c221013e7e1f1a043678c5cc39fe5171437c88fb47151a21e6f5b5c79" dependencies = [ - "web-time", "zeroize", ] @@ -1831,9 +1804,9 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "security-framework" -version = "3.2.0" +version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "271720403f46ca04f7ba6f55d438f8bd878d6b8ca0a1046e8228c4145bcbb316" +checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" dependencies = [ "bitflags 2.9.1", "core-foundation", @@ -2072,6 +2045,19 @@ dependencies = [ "xattr", ] +[[package]] +name = "tempfile" +version = "3.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8a64e3985349f2441a1a9ef0b853f869006c3855f2cda6862a94d26ebb9d6a1" +dependencies = [ + "fastrand", + "getrandom 0.3.3", + "once_cell", + "rustix", + "windows-sys 0.59.0", +] + [[package]] name = "thiserror" version = "1.0.69" @@ -2165,21 +2151,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "tinyvec" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09b3661f17e86524eccd4371ab0429194e0d7c008abb45f7a7495b1719463c71" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" - [[package]] name = "tokio" version = "1.45.1" @@ -2208,6 +2179,16 @@ dependencies = [ "syn", ] +[[package]] +name = "tokio-native-tls" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" +dependencies = [ + "native-tls", + "tokio", +] + [[package]] name = "tokio-rustls" version = "0.26.2" @@ -2467,6 +2448,12 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + [[package]] name = "version_check" version = "0.9.5" @@ -2588,16 +2575,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "web-time" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" -dependencies = [ - "js-sys", - "wasm-bindgen", -] - [[package]] name = "winapi" version = "0.3.9" @@ -2876,9 +2853,9 @@ checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb" [[package]] name = "xattr" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d65cbf2f12c15564212d48f4e3dfb87923d25d611f2aed18f4cb23f0413d89e" +checksum = "af3a19837351dc82ba89f8a125e22a3c475f05aba604acc023d62b2739ae2909" dependencies = [ "libc", "rustix", @@ -2908,26 +2885,6 @@ dependencies = [ "synstructure", ] -[[package]] -name = "zerocopy" -version = "0.8.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1039dd0d3c310cf05de012d8a39ff557cb0d23087fd44cad61df08fc31907a2f" -dependencies = [ - "zerocopy-derive", -] - -[[package]] -name = "zerocopy-derive" -version = "0.8.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ecf5b4cc5364572d7f4c329661bcc82724222973f2cab6f050a4e5c22f75181" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "zerofrom" version = "0.1.6" diff --git a/Cargo.toml b/Cargo.toml index 196a6429..fb5db457 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,10 +22,10 @@ process_alive = "0.1" cargo_metadata = "0.20" uuid = { version = "1", features = ["v4"] } clap = { version = "4.5.40", features = ["cargo", "derive"] } -reqwest = { version = "0.12.19", default-features = false, features = ["http2", "native-tls-vendored"] } clap_complete_nushell = "4.5.7" clap_complete = "4.5.54" flate2 = "1.1.2" +reqwest = { version = "0.12.20", default-features = false, features = ["native-tls-vendored", "http2"] } [target.'cfg(not(target_env = "msvc"))'.dependencies] mimalloc = { version = "0.1", default-features = false, features = ['extended'] } From c2eb9c402a7cefa3f77da1c56f49c70cb19c464e Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Sat, 28 Jun 2025 16:24:17 +0600 Subject: [PATCH 036/115] test --- Cargo.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fb5db457..d709fb05 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,11 +21,11 @@ tower-lsp = "0.20" process_alive = "0.1" cargo_metadata = "0.20" uuid = { version = "1", features = ["v4"] } -clap = { version = "4.5.40", features = ["cargo", "derive"] } -clap_complete_nushell = "4.5.7" -clap_complete = "4.5.54" -flate2 = "1.1.2" -reqwest = { version = "0.12.20", default-features = false, features = ["native-tls-vendored", "http2"] } +clap = { version = "4", features = ["cargo", "derive"] } +clap_complete_nushell = "4" +clap_complete = "4" +flate2 = "1" +reqwest = { version = "0.12", default-features = false, features = ["native-tls-vendored", "http2"] } [target.'cfg(not(target_env = "msvc"))'.dependencies] mimalloc = { version = "0.1", default-features = false, features = ['extended'] } From 7c3c26442a08b9bff72792e1f6d7b8f15dd61176 Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Sat, 28 Jun 2025 16:35:31 +0600 Subject: [PATCH 037/115] test --- Cargo.lock | 117 ++--------------------------------------------------- Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 114 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 59ee62b8..5336bc04 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -113,12 +113,6 @@ dependencies = [ "syn", ] -[[package]] -name = "atomic-waker" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" - [[package]] name = "auto_impl" version = "1.3.0" @@ -762,17 +756,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "getrandom" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" -dependencies = [ - "cfg-if", - "libc", - "wasi 0.11.1+wasi-snapshot-preview1", -] - [[package]] name = "getrandom" version = "0.3.3" @@ -793,25 +776,6 @@ version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" -[[package]] -name = "h2" -version = "0.4.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9421a676d1b147b16b82c9225157dc629087ef8ec4d5e2960f9437a90dac0a5" -dependencies = [ - "atomic-waker", - "bytes", - "fnv", - "futures-core", - "futures-sink", - "http", - "indexmap", - "slab", - "tokio", - "tokio-util", - "tracing", -] - [[package]] name = "half" version = "2.6.0" @@ -898,7 +862,6 @@ dependencies = [ "bytes", "futures-channel", "futures-util", - "h2", "http", "http-body", "httparse", @@ -909,22 +872,6 @@ dependencies = [ "want", ] -[[package]] -name = "hyper-rustls" -version = "0.27.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" -dependencies = [ - "http", - "hyper", - "hyper-util", - "rustls", - "rustls-pki-types", - "tokio", - "tokio-rustls", - "tower-service", -] - [[package]] name = "hyper-tls" version = "0.6.0" @@ -1143,7 +1090,7 @@ version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38f262f097c174adebe41eb73d66ae9c06b2844fb0da69969647bbddd9b0538a" dependencies = [ - "getrandom 0.3.3", + "getrandom", "libc", ] @@ -1638,12 +1585,10 @@ dependencies = [ "base64", "bytes", "futures-core", - "h2", "http", "http-body", "http-body-util", "hyper", - "hyper-rustls", "hyper-tls", "hyper-util", "js-sys", @@ -1667,20 +1612,6 @@ dependencies = [ "web-sys", ] -[[package]] -name = "ring" -version = "0.17.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" -dependencies = [ - "cc", - "cfg-if", - "getrandom 0.2.16", - "libc", - "untrusted", - "windows-sys 0.52.0", -] - [[package]] name = "roff" version = "0.2.2" @@ -1706,19 +1637,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "rustls" -version = "0.23.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7160e3e10bf4535308537f3c4e1641468cd0e485175d6163087c0393c7d46643" -dependencies = [ - "once_cell", - "rustls-pki-types", - "rustls-webpki", - "subtle", - "zeroize", -] - [[package]] name = "rustls-pki-types" version = "1.12.0" @@ -1728,17 +1646,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "rustls-webpki" -version = "0.103.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4a72fe2bcf7a6ac6fd7d0b9e5cb68aeb7d4c0a0271730218b3e92d43b4eb435" -dependencies = [ - "ring", - "rustls-pki-types", - "untrusted", -] - [[package]] name = "rustowl" version = "0.3.4" @@ -2052,7 +1959,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8a64e3985349f2441a1a9ef0b853f869006c3855f2cda6862a94d26ebb9d6a1" dependencies = [ "fastrand", - "getrandom 0.3.3", + "getrandom", "once_cell", "rustix", "windows-sys 0.59.0", @@ -2189,16 +2096,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "tokio-rustls" -version = "0.26.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b" -dependencies = [ - "rustls", - "tokio", -] - [[package]] name = "tokio-util" version = "0.7.15" @@ -2407,12 +2304,6 @@ version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" -[[package]] -name = "untrusted" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" - [[package]] name = "url" version = "2.5.4" @@ -2443,7 +2334,7 @@ version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3cf4199d1e5d15ddd86a694e4d0dffa9c323ce759fea589f00fef9d81cc1931d" dependencies = [ - "getrandom 0.3.3", + "getrandom", "js-sys", "wasm-bindgen", ] @@ -2972,7 +2863,7 @@ dependencies = [ "crc32fast", "deflate64", "flate2", - "getrandom 0.3.3", + "getrandom", "hmac", "indexmap", "liblzma", diff --git a/Cargo.toml b/Cargo.toml index d709fb05..92c50e72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ clap = { version = "4", features = ["cargo", "derive"] } clap_complete_nushell = "4" clap_complete = "4" flate2 = "1" -reqwest = { version = "0.12", default-features = false, features = ["native-tls-vendored", "http2"] } +reqwest = { version = "0.12", default-features = false, features = ["native-tls-vendored"] } [target.'cfg(not(target_env = "msvc"))'.dependencies] mimalloc = { version = "0.1", default-features = false, features = ['extended'] } From 1ee33c079fcae9efbf7c3f6af34796bb6aac703b Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Sat, 28 Jun 2025 20:57:55 +0600 Subject: [PATCH 038/115] add rustls with aws_lc --- Cargo.lock | 394 ++++++++++++++++++++++++++++++++++++----------------- Cargo.toml | 3 +- 2 files changed, 273 insertions(+), 124 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5336bc04..a6f58f7b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -130,6 +130,29 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" +[[package]] +name = "aws-lc-rs" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fcc8f365936c834db5514fc45aee5b1202d677e6b40e48468aaaa8183ca8c7" +dependencies = [ + "aws-lc-sys", + "zeroize", +] + +[[package]] +name = "aws-lc-sys" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61b1d86e7705efe1be1b569bab41d4fa1e14e220b60a160f78de2db687add079" +dependencies = [ + "bindgen", + "cc", + "cmake", + "dunce", + "fs_extra", +] + [[package]] name = "backtrace" version = "0.3.75" @@ -151,6 +174,29 @@ version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" +[[package]] +name = "bindgen" +version = "0.69.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088" +dependencies = [ + "bitflags 2.9.1", + "cexpr", + "clang-sys", + "itertools 0.10.5", + "lazy_static", + "lazycell", + "log", + "prettyplease", + "proc-macro2", + "quote", + "regex", + "rustc-hash", + "shlex", + "syn", + "which", +] + [[package]] name = "bitflags" version = "1.3.2" @@ -269,6 +315,15 @@ dependencies = [ "shlex", ] +[[package]] +name = "cexpr" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" +dependencies = [ + "nom", +] + [[package]] name = "cfg-if" version = "1.0.1" @@ -312,6 +367,17 @@ dependencies = [ "inout", ] +[[package]] +name = "clang-sys" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4" +dependencies = [ + "glob", + "libc", + "libloading", +] + [[package]] name = "clap" version = "4.5.40" @@ -381,6 +447,15 @@ dependencies = [ "roff", ] +[[package]] +name = "cmake" +version = "0.1.54" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7caa3f9de89ddbe2c607f4101924c5abec803763ae9534e4f4d7d8f84aa81f0" +dependencies = [ + "cc", +] + [[package]] name = "colorchoice" version = "1.0.4" @@ -405,9 +480,9 @@ checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" [[package]] name = "core-foundation" -version = "0.9.4" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" dependencies = [ "core-foundation-sys", "libc", @@ -578,6 +653,12 @@ dependencies = [ "syn", ] +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + [[package]] name = "either" version = "1.15.0" @@ -610,12 +691,6 @@ dependencies = [ "windows-sys 0.60.2", ] -[[package]] -name = "fastrand" -version = "2.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" - [[package]] name = "filetime" version = "0.2.25" @@ -645,21 +720,6 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" -[[package]] -name = "foreign-types" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" -dependencies = [ - "foreign-types-shared", -] - -[[package]] -name = "foreign-types-shared" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" - [[package]] name = "form_urlencoded" version = "1.2.1" @@ -669,6 +729,12 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + [[package]] name = "futures" version = "0.3.31" @@ -756,6 +822,17 @@ dependencies = [ "version_check", ] +[[package]] +name = "getrandom" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.11.1+wasi-snapshot-preview1", +] + [[package]] name = "getrandom" version = "0.3.3" @@ -776,6 +853,12 @@ version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" +[[package]] +name = "glob" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2" + [[package]] name = "half" version = "2.6.0" @@ -813,6 +896,15 @@ dependencies = [ "digest", ] +[[package]] +name = "home" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf" +dependencies = [ + "windows-sys 0.59.0", +] + [[package]] name = "http" version = "1.3.1" @@ -873,18 +965,19 @@ dependencies = [ ] [[package]] -name = "hyper-tls" -version = "0.6.0" +name = "hyper-rustls" +version = "0.27.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" +checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" dependencies = [ - "bytes", - "http-body-util", + "http", "hyper", "hyper-util", - "native-tls", + "rustls", + "rustls-native-certs", + "rustls-pki-types", "tokio", - "tokio-native-tls", + "tokio-rustls", "tower-service", ] @@ -1090,7 +1183,7 @@ version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38f262f097c174adebe41eb73d66ae9c06b2844fb0da69969647bbddd9b0538a" dependencies = [ - "getrandom", + "getrandom 0.3.3", "libc", ] @@ -1110,12 +1203,28 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" +[[package]] +name = "lazycell" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" + [[package]] name = "libc" version = "0.2.174" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776" +[[package]] +name = "libloading" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667" +dependencies = [ + "cfg-if", + "windows-targets 0.53.2", +] + [[package]] name = "liblzma" version = "0.4.2" @@ -1167,6 +1276,12 @@ dependencies = [ "zlib-rs", ] +[[package]] +name = "linux-raw-sys" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" + [[package]] name = "linux-raw-sys" version = "0.9.4" @@ -1223,6 +1338,12 @@ dependencies = [ "libmimalloc-sys", ] +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + [[package]] name = "miniz_oxide" version = "0.8.9" @@ -1244,20 +1365,13 @@ dependencies = [ ] [[package]] -name = "native-tls" -version = "0.2.14" +name = "nom" +version = "7.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" dependencies = [ - "libc", - "log", - "openssl", - "openssl-probe", - "openssl-sys", - "schannel", - "security-framework", - "security-framework-sys", - "tempfile", + "memchr", + "minimal-lexical", ] [[package]] @@ -1311,60 +1425,12 @@ version = "11.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e" -[[package]] -name = "openssl" -version = "0.10.73" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8505734d46c8ab1e19a1dce3aef597ad87dcb4c37e7188231769bd6bd51cebf8" -dependencies = [ - "bitflags 2.9.1", - "cfg-if", - "foreign-types", - "libc", - "once_cell", - "openssl-macros", - "openssl-sys", -] - -[[package]] -name = "openssl-macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "openssl-probe" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" -[[package]] -name = "openssl-src" -version = "300.5.0+3.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8ce546f549326b0e6052b649198487d91320875da901e7bd11a06d1ee3f9c2f" -dependencies = [ - "cc", -] - -[[package]] -name = "openssl-sys" -version = "0.9.109" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90096e2e47630d78b7d1c20952dc621f957103f8bc2c8359ec81290d75238571" -dependencies = [ - "cc", - "libc", - "openssl-src", - "pkg-config", - "vcpkg", -] - [[package]] name = "ordered-float" version = "2.10.1" @@ -1484,6 +1550,16 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" +[[package]] +name = "prettyplease" +version = "0.2.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "061c1221631e079b26479d25bbf2275bfe5917ae8419cd7e34f13bfc2aa7539a" +dependencies = [ + "proc-macro2", + "syn", +] + [[package]] name = "proc-macro2" version = "1.0.95" @@ -1589,20 +1665,21 @@ dependencies = [ "http-body", "http-body-util", "hyper", - "hyper-tls", + "hyper-rustls", "hyper-util", "js-sys", "log", - "native-tls", "percent-encoding", "pin-project-lite", + "rustls", + "rustls-native-certs", "rustls-pki-types", "serde", "serde_json", "serde_urlencoded", "sync_wrapper", "tokio", - "tokio-native-tls", + "tokio-rustls", "tower 0.5.2", "tower-http", "tower-service", @@ -1612,6 +1689,20 @@ dependencies = [ "web-sys", ] +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.16", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + [[package]] name = "roff" version = "0.2.2" @@ -1624,6 +1715,25 @@ version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "989e6739f80c4ad5b13e0fd7fe89531180375b18520cc8c82080e4dc4035b84f" +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustix" +version = "0.38.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" +dependencies = [ + "bitflags 2.9.1", + "errno", + "libc", + "linux-raw-sys 0.4.15", + "windows-sys 0.59.0", +] + [[package]] name = "rustix" version = "1.0.7" @@ -1633,10 +1743,36 @@ dependencies = [ "bitflags 2.9.1", "errno", "libc", - "linux-raw-sys", + "linux-raw-sys 0.9.4", "windows-sys 0.59.0", ] +[[package]] +name = "rustls" +version = "0.23.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7160e3e10bf4535308537f3c4e1641468cd0e485175d6163087c0393c7d46643" +dependencies = [ + "aws-lc-rs", + "once_cell", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-native-certs" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fcff2dd52b58a8d98a70243663a0d234c4e2b79235637849d15913394a247d3" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework", +] + [[package]] name = "rustls-pki-types" version = "1.12.0" @@ -1646,6 +1782,18 @@ dependencies = [ "zeroize", ] +[[package]] +name = "rustls-webpki" +version = "0.103.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4a72fe2bcf7a6ac6fd7d0b9e5cb68aeb7d4c0a0271730218b3e92d43b4eb435" +dependencies = [ + "aws-lc-rs", + "ring", + "rustls-pki-types", + "untrusted", +] + [[package]] name = "rustowl" version = "0.3.4" @@ -1663,6 +1811,7 @@ dependencies = [ "mimalloc", "process_alive", "reqwest", + "rustls", "serde", "serde_json", "simple_logger", @@ -1711,9 +1860,9 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "security-framework" -version = "2.11.1" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" +checksum = "271720403f46ca04f7ba6f55d438f8bd878d6b8ca0a1046e8228c4145bcbb316" dependencies = [ "bitflags 2.9.1", "core-foundation", @@ -1952,19 +2101,6 @@ dependencies = [ "xattr", ] -[[package]] -name = "tempfile" -version = "3.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8a64e3985349f2441a1a9ef0b853f869006c3855f2cda6862a94d26ebb9d6a1" -dependencies = [ - "fastrand", - "getrandom", - "once_cell", - "rustix", - "windows-sys 0.59.0", -] - [[package]] name = "thiserror" version = "1.0.69" @@ -2087,12 +2223,12 @@ dependencies = [ ] [[package]] -name = "tokio-native-tls" -version = "0.3.1" +name = "tokio-rustls" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" +checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b" dependencies = [ - "native-tls", + "rustls", "tokio", ] @@ -2304,6 +2440,12 @@ version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + [[package]] name = "url" version = "2.5.4" @@ -2334,17 +2476,11 @@ version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3cf4199d1e5d15ddd86a694e4d0dffa9c323ce759fea589f00fef9d81cc1931d" dependencies = [ - "getrandom", + "getrandom 0.3.3", "js-sys", "wasm-bindgen", ] -[[package]] -name = "vcpkg" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" - [[package]] name = "version_check" version = "0.9.5" @@ -2466,6 +2602,18 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "which" +version = "4.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7" +dependencies = [ + "either", + "home", + "once_cell", + "rustix 0.38.44", +] + [[package]] name = "winapi" version = "0.3.9" @@ -2749,7 +2897,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af3a19837351dc82ba89f8a125e22a3c475f05aba604acc023d62b2739ae2909" dependencies = [ "libc", - "rustix", + "rustix 1.0.7", ] [[package]] @@ -2863,7 +3011,7 @@ dependencies = [ "crc32fast", "deflate64", "flate2", - "getrandom", + "getrandom 0.3.3", "hmac", "indexmap", "liblzma", diff --git a/Cargo.toml b/Cargo.toml index 92c50e72..f5c4a462 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,8 @@ clap = { version = "4", features = ["cargo", "derive"] } clap_complete_nushell = "4" clap_complete = "4" flate2 = "1" -reqwest = { version = "0.12", default-features = false, features = ["native-tls-vendored"] } +reqwest = { version = "0.12", default-features = false, features = ["rustls-tls-native-roots-no-provider"] } +rustls = { version = "0.23.28", default-features = false, features = ["aws_lc_rs"] } [target.'cfg(not(target_env = "msvc"))'.dependencies] mimalloc = { version = "0.1", default-features = false, features = ['extended'] } From 562024b1da02ba0fd1174f08d93548bc696ac083 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Thu, 3 Jul 2025 17:13:02 +0600 Subject: [PATCH 039/115] revert to 1.87.0 for now (TESTING) --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 0ac1ffa7..74181d63 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -21,7 +21,7 @@ pkgver() { prepare() { cd "$srcdir/rustowl" export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 + export RUSTUP_TOOLCHAIN=1.87.0 rustup component add rust-src rustc-dev llvm-tools cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } From 4713390b51f4f031fb9657fea6b7f5173445c358 Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Fri, 4 Jul 2025 15:04:19 +0600 Subject: [PATCH 040/115] i get it? --- .github/workflows/aur-check.yml | 2 +- aur/PKGBUILD-GIT | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 527f2fa4..ea5bbb6d 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -63,7 +63,7 @@ jobs: WHITE='\033[1;37m' NC='\033[0m' # No Color - for pathname in aur/PKGBUILD*; do + for pathname in aur/PKGBUILD-GIT*; do if [ -f "${pathname}" ]; then filename=$(basename ${pathname}) dirname=$(dirname ${pathname}) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 74181d63..55f15d14 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,9 +7,9 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'gcc' 'make' 'cmake') +makedepends=('git' 'rustup' 'gcc' 'make' 'cmake' 'binutils') arch=('any') -source=("git+https://github.com/cordx56/rustowl.git") +source=("git+https://github.com/cordx56/rustowl#branch=MuntasirSZN-patch-1") sha256sums=('SKIP') conflicts=('rustowl-bin' 'rustowl') @@ -30,7 +30,7 @@ build() { cd "$srcdir/rustowl" export CARGO_TARGET_DIR=target export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 + export RUSTUP_TOOLCHAIN=1.87.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } @@ -38,7 +38,7 @@ build() { check() { cd "$srcdir/rustowl" export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 + export RUSTUP_TOOLCHAIN=1.87.0 cargo test --frozen --all-features } From 389a6a052c174132877028e6a6992a04c44fd9ac Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 18:17:41 +0600 Subject: [PATCH 041/115] trying the base-devel image --- .github/workflows/aur-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index ea5bbb6d..2fef7e71 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -18,7 +18,7 @@ jobs: name: Arch Linux Container Build & Test runs-on: ubuntu-latest container: - image: archlinux:latest + image: archlinux/archlinux:base-devel steps: - name: Checkout repository From 65e38504d25974abcc60918c038c7006e4cb628d Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 20:49:45 +0600 Subject: [PATCH 042/115] debugging --- .github/workflows/aur-check.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 2fef7e71..dff0ffd3 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -94,7 +94,10 @@ jobs: if sudo -u builder bash -c " set -e cd "${dirname}" + export RUSTFLAGS="-C link-arg=-Wl,--allow-multiple-definition" makepkg -scf --noconfirm -p "${filename}" + find target/ -name "libmimalloc*.a" -ls + nm target/release/build/libmimalloc-sys-*/out/libmimalloc.a | grep mi_ "; then echo -e "${GREEN}✅ Makepkg completed successfully${NC}" else From 8829b47bf366a99ddbc332e73038834378bb7866 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 20:56:38 +0600 Subject: [PATCH 043/115] I AM SOOOOO HAPPPPPPYYYY --- .github/workflows/aur-check.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index dff0ffd3..b1668728 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -18,7 +18,7 @@ jobs: name: Arch Linux Container Build & Test runs-on: ubuntu-latest container: - image: archlinux/archlinux:base-devel + image: archlinux/archlinux:latest steps: - name: Checkout repository @@ -63,7 +63,7 @@ jobs: WHITE='\033[1;37m' NC='\033[0m' # No Color - for pathname in aur/PKGBUILD-GIT*; do + for pathname in aur/PKGBUILD*; do if [ -f "${pathname}" ]; then filename=$(basename ${pathname}) dirname=$(dirname ${pathname}) @@ -96,8 +96,6 @@ jobs: cd "${dirname}" export RUSTFLAGS="-C link-arg=-Wl,--allow-multiple-definition" makepkg -scf --noconfirm -p "${filename}" - find target/ -name "libmimalloc*.a" -ls - nm target/release/build/libmimalloc-sys-*/out/libmimalloc.a | grep mi_ "; then echo -e "${GREEN}✅ Makepkg completed successfully${NC}" else From d72b27b3b620eea92961aa873f8a3f6021a98356 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 20:57:08 +0600 Subject: [PATCH 044/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 55f15d14..93c2dc86 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'gcc' 'make' 'cmake' 'binutils') +makedepends=('git' 'rustup' 'gcc') arch=('any') source=("git+https://github.com/cordx56/rustowl#branch=MuntasirSZN-patch-1") sha256sums=('SKIP') From 72feaf3818d6742b55bbc6537dad91489e4d2c73 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 20:57:30 +0600 Subject: [PATCH 045/115] Update PKGBUILD --- aur/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 5d5508bd..1db84ce6 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('rustup' 'gcc' 'cmake' 'make') +makedepends=('rustup' 'gcc') depends=() conflicts=('rustowl-git' 'rustowl-bin') arch=('any') From f071e56c6f968edfddc4a35210a4617de5705c20 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 20:59:01 +0600 Subject: [PATCH 046/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 93c2dc86..0ec77647 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -9,7 +9,7 @@ url='https://github.com/cordx56/rustowl' license=('MPL-2.0') makedepends=('git' 'rustup' 'gcc') arch=('any') -source=("git+https://github.com/cordx56/rustowl#branch=MuntasirSZN-patch-1") +source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') conflicts=('rustowl-bin' 'rustowl') From b310c1be0ad9e354a0942f1373d0b290cd36159a Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 21:06:24 +0600 Subject: [PATCH 047/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index b1668728..4be7df5a 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -93,9 +93,9 @@ jobs: if sudo -u builder bash -c " set -e - cd "${dirname}" - export RUSTFLAGS="-C link-arg=-Wl,--allow-multiple-definition" - makepkg -scf --noconfirm -p "${filename}" + cd '${dirname}' + export RUSTFLAGS='-C link-arg=-Wl,--allow-multiple-definition' + makepkg -scf --noconfirm -p '${filename}' "; then echo -e "${GREEN}✅ Makepkg completed successfully${NC}" else From 2a82bae24e27462b8c4822f8c86374cf91d342a4 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 21:20:47 +0600 Subject: [PATCH 048/115] Update PKGBUILD --- aur/PKGBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 1db84ce6..79a356d5 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -17,7 +17,7 @@ sha256sums=('fa120643aeb48061eb32a7c993dabff88aa4e9d0b32f8ab0f3289b3fb2cf5744') prepare() { cd rustowl-${pkgver} export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 + export RUSTUP_TOOLCHAIN=1.87.0 rustup component add rust-src rustc-dev llvm-tools cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } @@ -26,7 +26,7 @@ build() { cd rustowl-${pkgver} export CARGO_TARGET_DIR=target export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 + export RUSTUP_TOOLCHAIN=1.87.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } @@ -34,7 +34,7 @@ build() { check() { cd rustowl-${pkgver} export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 + export RUSTUP_TOOLCHAIN=1.87.0 cargo test --frozen --all-features } From a960162808f4e9b185faf359e02b42d51e0afabc Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 21:23:41 +0600 Subject: [PATCH 049/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 4be7df5a..0676e742 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -18,7 +18,7 @@ jobs: name: Arch Linux Container Build & Test runs-on: ubuntu-latest container: - image: archlinux/archlinux:latest + image: archlinux/archlinux:base-devel steps: - name: Checkout repository From 246319c846cfd11a452660a37ead3971fcbefb2d Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 21:28:44 +0600 Subject: [PATCH 050/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 0676e742..897d44ba 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -63,7 +63,7 @@ jobs: WHITE='\033[1;37m' NC='\033[0m' # No Color - for pathname in aur/PKGBUILD*; do + for pathname in aur/PKGBUILD-GIT*; do if [ -f "${pathname}" ]; then filename=$(basename ${pathname}) dirname=$(dirname ${pathname}) From 381305498ef566885a08f1e9e72e24499ff52d1a Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 21:29:19 +0600 Subject: [PATCH 051/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 0ec77647..93c2dc86 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -9,7 +9,7 @@ url='https://github.com/cordx56/rustowl' license=('MPL-2.0') makedepends=('git' 'rustup' 'gcc') arch=('any') -source=("git+https://github.com/cordx56/rustowl.git") +source=("git+https://github.com/cordx56/rustowl#branch=MuntasirSZN-patch-1") sha256sums=('SKIP') conflicts=('rustowl-bin' 'rustowl') From 80605eb4d5ad411618c41e976ac9757327384d7b Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 21:36:42 +0600 Subject: [PATCH 052/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 897d44ba..752561fc 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -96,6 +96,8 @@ jobs: cd '${dirname}' export RUSTFLAGS='-C link-arg=-Wl,--allow-multiple-definition' makepkg -scf --noconfirm -p '${filename}' + find target/ -name "libmimalloc*.a" -ls + nm target/release/build/libmimalloc-sys-*/out/libmimalloc.a | grep mi_ "; then echo -e "${GREEN}✅ Makepkg completed successfully${NC}" else From b37cc0d13b2a9b7553bb83150035209f2cd3dc6b Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 21:45:19 +0600 Subject: [PATCH 053/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 752561fc..d73fa883 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -96,12 +96,12 @@ jobs: cd '${dirname}' export RUSTFLAGS='-C link-arg=-Wl,--allow-multiple-definition' makepkg -scf --noconfirm -p '${filename}' - find target/ -name "libmimalloc*.a" -ls - nm target/release/build/libmimalloc-sys-*/out/libmimalloc.a | grep mi_ "; then echo -e "${GREEN}✅ Makepkg completed successfully${NC}" else echo -e "${RED}❌ Makepkg failed${NC}" + find target/ -name "libmimalloc*.a" -ls + nm target/release/build/libmimalloc-sys-*/out/libmimalloc.a | grep mi_ exit 1 fi From 2dd2f9caab0d42bb543ff6146c2a536a06e54812 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 22:03:33 +0600 Subject: [PATCH 054/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index d73fa883..0eccaa77 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -18,7 +18,7 @@ jobs: name: Arch Linux Container Build & Test runs-on: ubuntu-latest container: - image: archlinux/archlinux:base-devel + image: archlinux/archlinux:latest steps: - name: Checkout repository @@ -41,7 +41,9 @@ jobs: shellcheck \ debugedit \ fakeroot \ - sudo + sudo \ + binutils \ + libcap - name: Setup build user run: | @@ -94,14 +96,11 @@ jobs: if sudo -u builder bash -c " set -e cd '${dirname}' - export RUSTFLAGS='-C link-arg=-Wl,--allow-multiple-definition' makepkg -scf --noconfirm -p '${filename}' "; then echo -e "${GREEN}✅ Makepkg completed successfully${NC}" else echo -e "${RED}❌ Makepkg failed${NC}" - find target/ -name "libmimalloc*.a" -ls - nm target/release/build/libmimalloc-sys-*/out/libmimalloc.a | grep mi_ exit 1 fi From 3f02eee601c83289d10b64be8c2f7e697b8807c7 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 22:41:23 +0600 Subject: [PATCH 055/115] apply suggestion of @avifenesh --- aur/PKGBUILD | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 79a356d5..0af3e815 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -28,6 +28,17 @@ build() { export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.87.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl + + # First, build only the C dependency (mimalloc) + cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" -p libmimalloc-sys + + # Find the path to the compiled mimalloc library + MIMALLOC_PATH=$(find "$PWD/target" -name "libmimalloc.a" -printf "%h") + + # Set RUSTFLAGS to include the library path for the linker + export RUSTFLAGS="-L native=${MIMALLOC_PATH}" + + # Now, build the full project cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } From 0814d059e99d6d2523fd704edd7c4f9c56fcfeaf Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 22:45:49 +0600 Subject: [PATCH 056/115] apply suggestion of @avifenesh in git version --- aur/PKGBUILD-GIT | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 93c2dc86..f2a36d1b 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -32,6 +32,17 @@ build() { export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.87.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl + + # First, build only the C dependency (mimalloc) + cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" -p libmimalloc-sys + + # Find the path to the compiled mimalloc library + MIMALLOC_PATH=$(find "$PWD/target" -name "libmimalloc.a" -printf "%h") + + # Set RUSTFLAGS to include the library path for the linker + export RUSTFLAGS="-L native=${MIMALLOC_PATH}" + + # Now, build the full project cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } From b00e396f4c1aebf465784c5d32dc3002f707ea70 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 22:48:58 +0600 Subject: [PATCH 057/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index f2a36d1b..746cfae7 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -34,7 +34,7 @@ build() { export RUSTOWL_RUNTIME_DIRS=/opt/rustowl # First, build only the C dependency (mimalloc) - cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" -p libmimalloc-sys + cargo build --frozen --release --target "$(rustc --print=host-tuple)" -p libmimalloc-sys # Find the path to the compiled mimalloc library MIMALLOC_PATH=$(find "$PWD/target" -name "libmimalloc.a" -printf "%h") From a0c327a104bb3abc44171a1f7312bd0ee6287ad7 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 23:03:04 +0600 Subject: [PATCH 058/115] OVERLOAD the pacman command to match runner images on github --- .github/workflows/aur-check.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 0eccaa77..45bf4ff7 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -43,7 +43,15 @@ jobs: fakeroot \ sudo \ binutils \ - libcap + libcap \ + base-devel sudo git curl wget unzip tar gzip which openssh jq tree xz bzip2 p7zip \ + python python-pip go ruby rust java-runtime-openjdk java-environment-openjdk maven dotnet-sdk \ + gcc clang gfortran php sqlite postgresql tk upx xorg-server-xvfb fakeroot libtool libyaml openssl \ + iproute2 iputils net-tools netcat parallel patchelf shellcheck swig zip zsync nodejs npm \ + autoconf automake dbus dnsutils dpkg fakeroot gnupg iproute2 iputils mercurial p7zip pkgconf \ + rpm texinfo tk tree tzdata upx xorg-server-xvfb xz zsync bison brotli coreutils file findutils flex \ + ftp haveged lz4 m4 mediainfo netcat net-tools p7zip-full parallel patchelf pigz rsync shellcheck \ + sphinx sqlite3 ssh sshpass sudo systemd swig telnet time zip - name: Setup build user run: | From a2123604f978cab1061c70fa294261d4fe471cf2 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 23:03:46 +0600 Subject: [PATCH 059/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 45bf4ff7..b85aecc9 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -50,7 +50,7 @@ jobs: iproute2 iputils net-tools netcat parallel patchelf shellcheck swig zip zsync nodejs npm \ autoconf automake dbus dnsutils dpkg fakeroot gnupg iproute2 iputils mercurial p7zip pkgconf \ rpm texinfo tk tree tzdata upx xorg-server-xvfb xz zsync bison brotli coreutils file findutils flex \ - ftp haveged lz4 m4 mediainfo netcat net-tools p7zip-full parallel patchelf pigz rsync shellcheck \ + haveged lz4 m4 mediainfo netcat net-tools p7zip-full parallel patchelf pigz rsync shellcheck \ sphinx sqlite3 ssh sshpass sudo systemd swig telnet time zip - name: Setup build user From 5fd48c211a71d93e7cc17b7611a3e20b2843ab42 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 23:06:32 +0600 Subject: [PATCH 060/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index b85aecc9..819f9fa2 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -50,8 +50,8 @@ jobs: iproute2 iputils net-tools netcat parallel patchelf shellcheck swig zip zsync nodejs npm \ autoconf automake dbus dnsutils dpkg fakeroot gnupg iproute2 iputils mercurial p7zip pkgconf \ rpm texinfo tk tree tzdata upx xorg-server-xvfb xz zsync bison brotli coreutils file findutils flex \ - haveged lz4 m4 mediainfo netcat net-tools p7zip-full parallel patchelf pigz rsync shellcheck \ - sphinx sqlite3 ssh sshpass sudo systemd swig telnet time zip + haveged lz4 m4 mediainfo netcat net-tools parallel patchelf pigz rsync shellcheck \ + sqlite3 sshpass sudo systemd swig telnet time zip - name: Setup build user run: | From 8a50b6b2dc55e8e74524b33fc33bc14d163090f7 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 23:08:19 +0600 Subject: [PATCH 061/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 819f9fa2..cb8f8481 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -51,7 +51,7 @@ jobs: autoconf automake dbus dnsutils dpkg fakeroot gnupg iproute2 iputils mercurial p7zip pkgconf \ rpm texinfo tk tree tzdata upx xorg-server-xvfb xz zsync bison brotli coreutils file findutils flex \ haveged lz4 m4 mediainfo netcat net-tools parallel patchelf pigz rsync shellcheck \ - sqlite3 sshpass sudo systemd swig telnet time zip + sqlite3 sshpass sudo systemd swig time zip - name: Setup build user run: | From 3a8d3924ff18b59aea3ac98419f08438327440f6 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 23:10:40 +0600 Subject: [PATCH 062/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index cb8f8481..15dfd22b 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -46,7 +46,7 @@ jobs: libcap \ base-devel sudo git curl wget unzip tar gzip which openssh jq tree xz bzip2 p7zip \ python python-pip go ruby rust java-runtime-openjdk java-environment-openjdk maven dotnet-sdk \ - gcc clang gfortran php sqlite postgresql tk upx xorg-server-xvfb fakeroot libtool libyaml openssl \ + gcc clang php sqlite postgresql tk upx xorg-server-xvfb fakeroot libtool libyaml openssl \ iproute2 iputils net-tools netcat parallel patchelf shellcheck swig zip zsync nodejs npm \ autoconf automake dbus dnsutils dpkg fakeroot gnupg iproute2 iputils mercurial p7zip pkgconf \ rpm texinfo tk tree tzdata upx xorg-server-xvfb xz zsync bison brotli coreutils file findutils flex \ From 53461c9f1de78d8ca02bb6ce69a0586518f1050e Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 4 Jul 2025 23:12:39 +0600 Subject: [PATCH 063/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 15dfd22b..cf4478a9 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -45,7 +45,7 @@ jobs: binutils \ libcap \ base-devel sudo git curl wget unzip tar gzip which openssh jq tree xz bzip2 p7zip \ - python python-pip go ruby rust java-runtime-openjdk java-environment-openjdk maven dotnet-sdk \ + python python-pip go ruby java-runtime-openjdk java-environment-openjdk maven dotnet-sdk \ gcc clang php sqlite postgresql tk upx xorg-server-xvfb fakeroot libtool libyaml openssl \ iproute2 iputils net-tools netcat parallel patchelf shellcheck swig zip zsync nodejs npm \ autoconf automake dbus dnsutils dpkg fakeroot gnupg iproute2 iputils mercurial p7zip pkgconf \ From 895f4008b512ef14cff3470e3abe76383c096a7c Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Mon, 7 Jul 2025 22:29:05 +0600 Subject: [PATCH 064/115] fix --- Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8d32adb7..2e536097 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,11 +22,13 @@ process_alive = "0.1" cargo_metadata = "0.20" uuid = { version = "1", features = ["v4"] } clap = { version = "4", features = ["cargo", "derive"] } -clap_complete_nushell = "4" -clap_complete = "4" flate2 = "1" reqwest = { version = "0.12", default-features = false, features = ["rustls-tls-native-roots-no-provider"] } rustls = { version = "0.23.28", default-features = false, features = ["aws_lc_rs"] } +clap_complete_nushell = "4" +clap_complete = "4" +tar = "0.4.44" +tempfile = "3" [target.'cfg(not(target_env = "msvc"))'.dependencies] mimalloc = { version = "0.1", default-features = false, features = ['extended'] } From 58d534d5f10274c412eaafdb5d2f8f1a38fc2484 Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Mon, 7 Jul 2025 22:30:21 +0600 Subject: [PATCH 065/115] lockfile --- Cargo.lock | 70 +++++++++++++++++++----------------------------------- 1 file changed, 25 insertions(+), 45 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 077ae5be..64c7fde6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -163,7 +163,7 @@ dependencies = [ "bitflags 2.9.1", "cexpr", "clang-sys", - "itertools 0.10.5", + "itertools 0.12.1", "lazy_static", "lazycell", "log", @@ -258,10 +258,12 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.2.27" +version = "1.2.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d487aa071b5f64da6f19a3e848e3578944b726ee5a4854b82172f02aa876bfdc" +checksum = "5c1599538de2394445747c8cf7935946e3cc27e9625f889d979bfb2aaf569362" dependencies = [ + "jobserver", + "libc", "shlex", ] @@ -307,16 +309,6 @@ dependencies = [ "half", ] -[[package]] -name = "cipher" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" -dependencies = [ - "crypto-common", - "inout", -] - [[package]] name = "clang-sys" version = "1.8.1" @@ -732,11 +724,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" dependencies = [ "cfg-if", - "js-sys", "libc", "r-efi", "wasi 0.14.2+wasi-0.2.4", - "wasm-bindgen", ] [[package]] @@ -779,15 +769,6 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" -[[package]] -name = "hmac" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" -dependencies = [ - "digest", -] - [[package]] name = "home" version = "0.5.11" @@ -1056,6 +1037,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" +dependencies = [ + "either", +] + [[package]] name = "itertools" version = "0.13.0" @@ -1071,6 +1061,16 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" +[[package]] +name = "jobserver" +version = "0.1.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38f262f097c174adebe41eb73d66ae9c06b2844fb0da69969647bbddd9b0538a" +dependencies = [ + "getrandom 0.3.3", + "libc", +] + [[package]] name = "js-sys" version = "0.3.77" @@ -1109,26 +1109,6 @@ dependencies = [ "windows-targets 0.53.2", ] -[[package]] -name = "liblzma" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0791ab7e08ccc8e0ce893f6906eb2703ed8739d8e89b57c0714e71bad09024c8" -dependencies = [ - "liblzma-sys", -] - -[[package]] -name = "liblzma-sys" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01b9596486f6d60c3bbe644c0e1be1aa6ccc472ad630fe8927b456973d7cb736" -dependencies = [ - "cc", - "libc", - "pkg-config", -] - [[package]] name = "libmimalloc-sys" version = "0.1.43" @@ -1953,7 +1933,7 @@ dependencies = [ "fastrand", "getrandom 0.3.3", "once_cell", - "rustix", + "rustix 1.0.7", "windows-sys 0.59.0", ] From 2c525222cc5403ae316b5a83fb67bc0b7f11f3ce Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Mon, 7 Jul 2025 22:35:30 +0600 Subject: [PATCH 066/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 746cfae7..8fe28e7b 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -21,7 +21,7 @@ pkgver() { prepare() { cd "$srcdir/rustowl" export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.87.0 + export RUSTUP_TOOLCHAIN=1.88.0 rustup component add rust-src rustc-dev llvm-tools cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } @@ -30,7 +30,7 @@ build() { cd "$srcdir/rustowl" export CARGO_TARGET_DIR=target export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.87.0 + export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl # First, build only the C dependency (mimalloc) @@ -49,7 +49,7 @@ build() { check() { cd "$srcdir/rustowl" export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.87.0 + export RUSTUP_TOOLCHAIN=1.88.0 cargo test --frozen --all-features } From f9d470bf445501efa3578e4c20d40c9f36a0b292 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Mon, 7 Jul 2025 22:41:05 +0600 Subject: [PATCH 067/115] Update PKGBUILD --- aur/PKGBUILD | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 0af3e815..1e34861e 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -17,7 +17,7 @@ sha256sums=('fa120643aeb48061eb32a7c993dabff88aa4e9d0b32f8ab0f3289b3fb2cf5744') prepare() { cd rustowl-${pkgver} export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.87.0 + export RUSTUP_TOOLCHAIN=1.88.0 rustup component add rust-src rustc-dev llvm-tools cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } @@ -26,37 +26,21 @@ build() { cd rustowl-${pkgver} export CARGO_TARGET_DIR=target export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.87.0 + export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl - - # First, build only the C dependency (mimalloc) - cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" -p libmimalloc-sys - - # Find the path to the compiled mimalloc library - MIMALLOC_PATH=$(find "$PWD/target" -name "libmimalloc.a" -printf "%h") - - # Set RUSTFLAGS to include the library path for the linker - export RUSTFLAGS="-L native=${MIMALLOC_PATH}" - - # Now, build the full project cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } check() { cd rustowl-${pkgver} export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.87.0 + export RUSTUP_TOOLCHAIN=1.88.0 cargo test --frozen --all-features } package() { cd rustowl-${pkgver} - find target -type d | grep -E 'rustowl-build-time-out$' | xargs -I % cp -r % ./ - mkdir sysroot - ACTIVE_TOOLCHAIN="$(rustup show active-toolchain | awk '{ print $1 }')" - cp -r "$(rustc --print=sysroot)" sysroot/"$ACTIVE_TOOLCHAIN" - find sysroot -type f | grep -v -E '\.(rlib|so|dylib|dll)$' | xargs rm -rf - find sysroot -depth -type d -empty -exec rm -rf {} \; + ./target/$(rustc --print=host-tuple)/release/rustowl toolchain install --path sysroot/$(rustup show active-toolchain | awk '{ print $1 }') install -d -m 755 "$pkgdir/opt/rustowl" cp -a sysroot/ "$pkgdir/opt/rustowl/" install -Dm0755 -t "$pkgdir/usr/bin/" "target/$(rustc --print=host-tuple)/release/rustowl" From e21596a6cbee70a8bdbeac0d371303293f817f51 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Mon, 7 Jul 2025 22:42:01 +0600 Subject: [PATCH 068/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 8fe28e7b..07764548 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -32,17 +32,6 @@ build() { export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl - - # First, build only the C dependency (mimalloc) - cargo build --frozen --release --target "$(rustc --print=host-tuple)" -p libmimalloc-sys - - # Find the path to the compiled mimalloc library - MIMALLOC_PATH=$(find "$PWD/target" -name "libmimalloc.a" -printf "%h") - - # Set RUSTFLAGS to include the library path for the linker - export RUSTFLAGS="-L native=${MIMALLOC_PATH}" - - # Now, build the full project cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } @@ -55,12 +44,7 @@ check() { package() { cd "$srcdir/rustowl" - find target -type d | grep -E 'rustowl-build-time-out$' | xargs -I % cp -r % ./ - mkdir sysroot - ACTIVE_TOOLCHAIN="$(rustup show active-toolchain | awk '{ print $1 }')" - cp -r "$(rustc --print=sysroot)" sysroot/"$ACTIVE_TOOLCHAIN" - find sysroot -type f | grep -v -E '\.(rlib|so|dylib|dll)$' | xargs rm -rf - find sysroot -depth -type d -empty -exec rm -rf {} \; + ./target/$(rustc --print=host-tuple)/release/rustowl toolchain install --path sysroot/$(rustup show active-toolchain | awk '{ print $1 }') install -d -m 755 "$pkgdir/opt/rustowl" cp -a sysroot/ "$pkgdir/opt/rustowl/" install -Dm0755 -t "$pkgdir/usr/bin/" "target/$(rustc --print=host-tuple)/release/rustowl" From 6d9d183b1d95ed16700706f30729ffa7201122d4 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Mon, 7 Jul 2025 22:51:56 +0600 Subject: [PATCH 069/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index cf4478a9..ae9dbc41 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -43,15 +43,8 @@ jobs: fakeroot \ sudo \ binutils \ - libcap \ - base-devel sudo git curl wget unzip tar gzip which openssh jq tree xz bzip2 p7zip \ - python python-pip go ruby java-runtime-openjdk java-environment-openjdk maven dotnet-sdk \ - gcc clang php sqlite postgresql tk upx xorg-server-xvfb fakeroot libtool libyaml openssl \ - iproute2 iputils net-tools netcat parallel patchelf shellcheck swig zip zsync nodejs npm \ - autoconf automake dbus dnsutils dpkg fakeroot gnupg iproute2 iputils mercurial p7zip pkgconf \ - rpm texinfo tk tree tzdata upx xorg-server-xvfb xz zsync bison brotli coreutils file findutils flex \ - haveged lz4 m4 mediainfo netcat net-tools parallel patchelf pigz rsync shellcheck \ - sqlite3 sshpass sudo systemd swig time zip + glibc \ + glibc-libs - name: Setup build user run: | From 52cd1f5eb070106f39a470185e803b02d88f6f27 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Mon, 7 Jul 2025 22:53:07 +0600 Subject: [PATCH 070/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index ae9dbc41..1e656bb0 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -44,7 +44,7 @@ jobs: sudo \ binutils \ glibc \ - glibc-libs + gcc-libs - name: Setup build user run: | From 002399c9745e2b16fd2406fa87ce54ea4097b8c3 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Mon, 7 Jul 2025 22:59:31 +0600 Subject: [PATCH 071/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 07764548..d1d3ee03 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -44,7 +44,7 @@ check() { package() { cd "$srcdir/rustowl" - ./target/$(rustc --print=host-tuple)/release/rustowl toolchain install --path sysroot/$(rustup show active-toolchain | awk '{ print $1 }') + ./target/"$(rustc --print=host-tuple)"/release/rustowl toolchain install --path sysroot/$(rustup show active-toolchain | awk '{ print $1 }') install -d -m 755 "$pkgdir/opt/rustowl" cp -a sysroot/ "$pkgdir/opt/rustowl/" install -Dm0755 -t "$pkgdir/usr/bin/" "target/$(rustc --print=host-tuple)/release/rustowl" From afa86cd042f4a5f4167c4f3ead7e8f191d23fe54 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Mon, 7 Jul 2025 23:02:47 +0600 Subject: [PATCH 072/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index d1d3ee03..5bca8a9d 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -44,7 +44,7 @@ check() { package() { cd "$srcdir/rustowl" - ./target/"$(rustc --print=host-tuple)"/release/rustowl toolchain install --path sysroot/$(rustup show active-toolchain | awk '{ print $1 }') + ./target/"$(rustc --print=host-tuple)"/release/rustowl toolchain install --path sysroot/"$(rustup show active-toolchain | awk '{ print $1 }')" install -d -m 755 "$pkgdir/opt/rustowl" cp -a sysroot/ "$pkgdir/opt/rustowl/" install -Dm0755 -t "$pkgdir/usr/bin/" "target/$(rustc --print=host-tuple)/release/rustowl" From 9e66c6f0aeb68613240e78a1890549d18d9c6e14 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Mon, 7 Jul 2025 23:03:12 +0600 Subject: [PATCH 073/115] Update PKGBUILD --- aur/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 1e34861e..e8c6234f 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -40,7 +40,7 @@ check() { package() { cd rustowl-${pkgver} - ./target/$(rustc --print=host-tuple)/release/rustowl toolchain install --path sysroot/$(rustup show active-toolchain | awk '{ print $1 }') + ./target/"$(rustc --print=host-tuple)"/release/rustowl toolchain install --path sysroot/"$(rustup show active-toolchain | awk '{ print $1 }')" install -d -m 755 "$pkgdir/opt/rustowl" cp -a sysroot/ "$pkgdir/opt/rustowl/" install -Dm0755 -t "$pkgdir/usr/bin/" "target/$(rustc --print=host-tuple)/release/rustowl" From 696678e44b967170c3652a7d51bd8e8f8584a5c1 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Tue, 8 Jul 2025 15:10:22 +0600 Subject: [PATCH 074/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 5bca8a9d..b4e3933d 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -32,6 +32,18 @@ build() { export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl + export CFLAGS="-DMI_STATIC_LIB" + # First, build only the C dependency (mimalloc) + cargo build --frozen --release --target "$(rustc --print=host-tuple)" -p libmimalloc-sys + + export CFLAGS= + # Find the path to the compiled mimalloc library + MIMALLOC_PATH=$(find "$PWD/target" -name "libmimalloc.a" -printf "%h") + + # Set RUSTFLAGS to include the library path for the linker + export RUSTFLAGS="-L native=${MIMALLOC_PATH}" + + # Now, build the full project cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } From f373b5df21c457cbbb631e8c0286e4589a47062a Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Tue, 8 Jul 2025 15:18:46 +0600 Subject: [PATCH 075/115] lockfile --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 64c7fde6..e94230b3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -856,9 +856,9 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.14" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc2fdfdbff08affe55bb779f33b053aa1fe5dd5b54c257343c17edfa55711bdb" +checksum = "7f66d5bd4c6f02bf0542fad85d626775bab9258cf795a4256dcaf3161114d1df" dependencies = [ "base64", "bytes", From 67f6b147477e7240ae43b90dd4560fe44054be0e Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Tue, 8 Jul 2025 15:32:25 +0600 Subject: [PATCH 076/115] checking if binutils glibc gcc-libs is needed --- .github/workflows/aur-check.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 1e656bb0..37cddcf1 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -41,10 +41,7 @@ jobs: shellcheck \ debugedit \ fakeroot \ - sudo \ - binutils \ - glibc \ - gcc-libs + sudo - name: Setup build user run: | From 9aef5605ee5dfa1cd9a0e81f79311b3d6d537b0b Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Tue, 8 Jul 2025 15:33:37 +0600 Subject: [PATCH 077/115] apply the same to pkgbuild --- aur/PKGBUILD | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index e8c6234f..4f06c305 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -28,6 +28,11 @@ build() { export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl + export CFLAGS="-DMI_STATIC_LIB" + cargo build --frozen --release --target "$(rustc --print=host-tuple)" -p libmimalloc-sys + export CFLAGS= + MIMALLOC_PATH=$(find "$PWD/target" -name "libmimalloc.a" -printf "%h") + export RUSTFLAGS="-L native=${MIMALLOC_PATH}" cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } From be7f41416e19ad3e8992e549e9bb6fc4094cacff Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Tue, 8 Jul 2025 15:46:14 +0600 Subject: [PATCH 078/115] initialize the aws_ls_rs provider --- src/bin/rustowl.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/rustowl.rs b/src/bin/rustowl.rs index c85dc7ea..7a320a0c 100644 --- a/src/bin/rustowl.rs +++ b/src/bin/rustowl.rs @@ -137,6 +137,10 @@ async fn start_lsp_server() { #[tokio::main] async fn main() { + rustls::crypto::aws_lc_rs::default_provider() + .install_default() + .expect("crypto provider already installed"); + initialize_logging(); let parsed_args = Cli::parse(); From a34ad5e08be0755cf69e391d13495218323714fb Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Tue, 8 Jul 2025 15:49:33 +0600 Subject: [PATCH 079/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index b4e3933d..c9da69cc 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -32,18 +32,15 @@ build() { export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl + # HACK: Mimalloc couldn't be built with the env's set + # in libmimalloc-sys crate, MI_STATIC_LIB enables options + # in the c code. We set CFLAGS, build it manually then reset CFLAGS, then + # link it. export CFLAGS="-DMI_STATIC_LIB" - # First, build only the C dependency (mimalloc) cargo build --frozen --release --target "$(rustc --print=host-tuple)" -p libmimalloc-sys - export CFLAGS= - # Find the path to the compiled mimalloc library MIMALLOC_PATH=$(find "$PWD/target" -name "libmimalloc.a" -printf "%h") - - # Set RUSTFLAGS to include the library path for the linker export RUSTFLAGS="-L native=${MIMALLOC_PATH}" - - # Now, build the full project cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } From c81017d2f6da9ded72a00a31ad02982e8b48c7b4 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Tue, 8 Jul 2025 15:50:18 +0600 Subject: [PATCH 080/115] add a comment --- aur/PKGBUILD | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 4f06c305..a318946d 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -28,6 +28,10 @@ build() { export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl + # HACK: Mimalloc couldn't be built with the env's set + # in libmimalloc-sys crate, MI_STATIC_LIB enables options + # in the c code. We set CFLAGS, build it manually then reset CFLAGS, then + # link it. export CFLAGS="-DMI_STATIC_LIB" cargo build --frozen --release --target "$(rustc --print=host-tuple)" -p libmimalloc-sys export CFLAGS= From f9893e09e713ea932db7c2eec60c77998c4e2d20 Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Tue, 15 Jul 2025 15:45:36 +0600 Subject: [PATCH 081/115] update lockfile --- Cargo.lock | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b7925c68..9e9fa5ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -112,9 +112,9 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" [[package]] name = "aws-lc-rs" -version = "1.13.1" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93fcc8f365936c834db5514fc45aee5b1202d677e6b40e48468aaaa8183ca8c7" +checksum = "08b5d4e069cbc868041a64bd68dc8cb39a0d79585cd6c5a24caa8c2d622121be" dependencies = [ "aws-lc-sys", "zeroize", @@ -122,9 +122,9 @@ dependencies = [ [[package]] name = "aws-lc-sys" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61b1d86e7705efe1be1b569bab41d4fa1e14e220b60a160f78de2db687add079" +checksum = "dbfd150b5dbdb988bcc8fb1fe787eb6b7ee6180ca24da683b61ea5405f3d43ff" dependencies = [ "bindgen", "cc", @@ -432,9 +432,9 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "crc32fast" -version = "1.4.2" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" dependencies = [ "cfg-if", ] @@ -1588,9 +1588,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.28" +version = "0.23.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7160e3e10bf4535308537f3c4e1641468cd0e485175d6163087c0393c7d46643" +checksum = "2491382039b29b9b11ff08b76ff6c97cf287671dbb74f0be44bda389fffe9bd1" dependencies = [ "aws-lc-rs", "once_cell", @@ -1623,9 +1623,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.103.3" +version = "0.103.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4a72fe2bcf7a6ac6fd7d0b9e5cb68aeb7d4c0a0271730218b3e92d43b4eb435" +checksum = "0a17884ae0c1b773f1ccd2bd4a8c72f16da897310a98b0e84bf349ad5ead92fc" dependencies = [ "aws-lc-rs", "ring", @@ -2674,9 +2674,9 @@ checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" [[package]] name = "winnow" -version = "0.7.11" +version = "0.7.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74c7b26e3480b707944fc872477815d29a8e429d2f93a1ce000f5fa84a15cbcd" +checksum = "f3edebf492c8125044983378ecb5766203ad3b4c2f7a922bd7dd207f6d443e95" dependencies = [ "memchr", ] From beecb064d44ab9a4dfc1e3ca45fe13ccacab853a Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Tue, 15 Jul 2025 19:45:27 +0600 Subject: [PATCH 082/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 1 + 1 file changed, 1 insertion(+) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index c9da69cc..b90733b7 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -53,6 +53,7 @@ check() { package() { cd "$srcdir/rustowl" + find target -type d | grep -E 'rustowl-build-time-out$' | xargs -I % cp -r % ./ ./target/"$(rustc --print=host-tuple)"/release/rustowl toolchain install --path sysroot/"$(rustup show active-toolchain | awk '{ print $1 }')" install -d -m 755 "$pkgdir/opt/rustowl" cp -a sysroot/ "$pkgdir/opt/rustowl/" From 318c19f8290d3d8b8238e2b074c1d7d2a73d0f5d Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Tue, 15 Jul 2025 19:45:58 +0600 Subject: [PATCH 083/115] Update PKGBUILD --- aur/PKGBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index a318946d..0ac6fa17 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -49,6 +49,7 @@ check() { package() { cd rustowl-${pkgver} + find target -type d | grep -E 'rustowl-build-time-out$' | xargs -I % cp -r % ./ ./target/"$(rustc --print=host-tuple)"/release/rustowl toolchain install --path sysroot/"$(rustup show active-toolchain | awk '{ print $1 }')" install -d -m 755 "$pkgdir/opt/rustowl" cp -a sysroot/ "$pkgdir/opt/rustowl/" From c46d1663bf53b96fb99aa044fd79ac44566dda44 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Tue, 15 Jul 2025 19:56:53 +0600 Subject: [PATCH 084/115] run on all pkgbuilds (build will fail on PKGBUILD and GIT as its not main) --- .github/workflows/aur-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 37cddcf1..41b133e5 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -63,7 +63,7 @@ jobs: WHITE='\033[1;37m' NC='\033[0m' # No Color - for pathname in aur/PKGBUILD-GIT*; do + for pathname in aur/PKGBUILD*; do if [ -f "${pathname}" ]; then filename=$(basename ${pathname}) dirname=$(dirname ${pathname}) From 50b4340b1e7a1aab9f4a95034a3b1c6fb117e481 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Tue, 15 Jul 2025 19:58:02 +0600 Subject: [PATCH 085/115] remove mimalloc code, it will fail --- aur/PKGBUILD-GIT | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index b90733b7..1d3c7a7b 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -9,7 +9,7 @@ url='https://github.com/cordx56/rustowl' license=('MPL-2.0') makedepends=('git' 'rustup' 'gcc') arch=('any') -source=("git+https://github.com/cordx56/rustowl#branch=MuntasirSZN-patch-1") +source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') conflicts=('rustowl-bin' 'rustowl') @@ -32,15 +32,6 @@ build() { export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl - # HACK: Mimalloc couldn't be built with the env's set - # in libmimalloc-sys crate, MI_STATIC_LIB enables options - # in the c code. We set CFLAGS, build it manually then reset CFLAGS, then - # link it. - export CFLAGS="-DMI_STATIC_LIB" - cargo build --frozen --release --target "$(rustc --print=host-tuple)" -p libmimalloc-sys - export CFLAGS= - MIMALLOC_PATH=$(find "$PWD/target" -name "libmimalloc.a" -printf "%h") - export RUSTFLAGS="-L native=${MIMALLOC_PATH}" cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } From f66f222081cdfb5396e44210a15aff7c6ffd9a9c Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Tue, 15 Jul 2025 20:00:17 +0600 Subject: [PATCH 086/115] remove mimalloc code --- aur/PKGBUILD | 9 --------- 1 file changed, 9 deletions(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 0ac6fa17..f04d37e8 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -28,15 +28,6 @@ build() { export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl - # HACK: Mimalloc couldn't be built with the env's set - # in libmimalloc-sys crate, MI_STATIC_LIB enables options - # in the c code. We set CFLAGS, build it manually then reset CFLAGS, then - # link it. - export CFLAGS="-DMI_STATIC_LIB" - cargo build --frozen --release --target "$(rustc --print=host-tuple)" -p libmimalloc-sys - export CFLAGS= - MIMALLOC_PATH=$(find "$PWD/target" -name "libmimalloc.a" -printf "%h") - export RUSTFLAGS="-L native=${MIMALLOC_PATH}" cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } From 780bc6a27f3716c7cb6e6be0111f21fabe1a5a0e Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Wed, 16 Jul 2025 14:43:22 +0600 Subject: [PATCH 087/115] lockfile --- Cargo.lock | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 219b81e5..c2a8d199 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -730,23 +730,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] -name = "h2" -version = "0.4.11" +name = "glob" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17da50a276f1e01e0ba6c029e47b7100754904ee8a278f886546e98575380785" -dependencies = [ - "atomic-waker", - "bytes", - "fnv", - "futures-core", - "futures-sink", - "http", - "indexmap", - "slab", - "tokio", - "tokio-util", - "tracing", -] +checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2" [[package]] name = "half" @@ -1106,6 +1093,16 @@ version = "0.2.174" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776" +[[package]] +name = "libloading" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667" +dependencies = [ + "cfg-if", + "windows-targets 0.53.2", +] + [[package]] name = "libredox" version = "0.1.4" @@ -1170,6 +1167,12 @@ version = "2.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0" +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + [[package]] name = "miniz_oxide" version = "0.8.9" @@ -1546,15 +1549,15 @@ dependencies = [ [[package]] name = "rustix" -version = "1.0.7" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c71e83d6afe7ff64890ec6b71d6a69bb8a610ab78ce364b3352876bb4c801266" +checksum = "11181fbabf243db407ef8df94a6ce0b2f9a733bd8be4ad02b4eda9602296cac8" dependencies = [ "bitflags 2.9.1", "errno", "libc", "linux-raw-sys 0.9.4", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -1904,7 +1907,7 @@ dependencies = [ "fastrand", "getrandom 0.3.3", "once_cell", - "rustix 1.0.7", + "rustix 1.0.8", "windows-sys 0.59.0", ] @@ -2694,7 +2697,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af3a19837351dc82ba89f8a125e22a3c475f05aba604acc023d62b2739ae2909" dependencies = [ "libc", - "rustix 1.0.7", + "rustix 1.0.8", ] [[package]] From 40cae30159991a0ef3396fecb70a12231a53622c Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Wed, 16 Jul 2025 14:47:09 +0600 Subject: [PATCH 088/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 1d3c7a7b..ecd13aa2 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'gcc') +makedepends=('git' 'rustup' 'gcc' 'make') arch=('any') source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') From 34e8ade53eaa3d5aac96d8618997f3be083bf54a Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Wed, 16 Jul 2025 14:47:26 +0600 Subject: [PATCH 089/115] Update PKGBUILD --- aur/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index f04d37e8..3039e152 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('rustup' 'gcc') +makedepends=('rustup' 'gcc' 'make') depends=() conflicts=('rustowl-git' 'rustowl-bin') arch=('any') From 1fa0487335b68b673f2dc7317aa188afe408ebf8 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Wed, 16 Jul 2025 14:53:25 +0600 Subject: [PATCH 090/115] run on git for now --- .github/workflows/aur-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 41b133e5..37cddcf1 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -63,7 +63,7 @@ jobs: WHITE='\033[1;37m' NC='\033[0m' # No Color - for pathname in aur/PKGBUILD*; do + for pathname in aur/PKGBUILD-GIT*; do if [ -f "${pathname}" ]; then filename=$(basename ${pathname}) dirname=$(dirname ${pathname}) From a3e7bff8f37a90d5246394368a6bb91039a97b48 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Wed, 16 Jul 2025 15:00:44 +0600 Subject: [PATCH 091/115] Update PKGBUILD --- aur/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 3039e152..83f743bf 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('rustup' 'gcc' 'make') +makedepends=('rustup' 'gcc' 'make' 'autoconf') depends=() conflicts=('rustowl-git' 'rustowl-bin') arch=('any') From e5816ac85585f0346409fb315fe859aec40f3f69 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Wed, 16 Jul 2025 15:01:09 +0600 Subject: [PATCH 092/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index ecd13aa2..001618c1 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'gcc' 'make') +makedepends=('git' 'rustup' 'gcc' 'make' 'autoconf') arch=('any') source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') From ae6fd5231f3a3d9b4332a93f15b8a35e5a49cf1f Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Wed, 16 Jul 2025 15:21:23 +0600 Subject: [PATCH 093/115] a try with base devel --- .github/workflows/aur-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 37cddcf1..44558f6e 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -18,7 +18,7 @@ jobs: name: Arch Linux Container Build & Test runs-on: ubuntu-latest container: - image: archlinux/archlinux:latest + image: archlinux/archlinux:base-devel steps: - name: Checkout repository From 53f2643a76b3c6266248c4767226a1efa6ae43e5 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Wed, 16 Jul 2025 15:28:17 +0600 Subject: [PATCH 094/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 44558f6e..37cddcf1 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -18,7 +18,7 @@ jobs: name: Arch Linux Container Build & Test runs-on: ubuntu-latest container: - image: archlinux/archlinux:base-devel + image: archlinux/archlinux:latest steps: - name: Checkout repository From 7c351cb6db851e775b422fb6119df1dd4921dc03 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Wed, 16 Jul 2025 15:35:05 +0600 Subject: [PATCH 095/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 37cddcf1..24ddb1b8 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -41,7 +41,9 @@ jobs: shellcheck \ debugedit \ fakeroot \ - sudo + sudo \ + gcc-libs \ + pkgconf - name: Setup build user run: | From 8e0f5827915d22ae6e2c8448305dc467e8156dcb Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Wed, 16 Jul 2025 15:49:39 +0600 Subject: [PATCH 096/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 24ddb1b8..37cddcf1 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -41,9 +41,7 @@ jobs: shellcheck \ debugedit \ fakeroot \ - sudo \ - gcc-libs \ - pkgconf + sudo - name: Setup build user run: | From 4a1abc9de51d816816ae976ec1c80263dd2df454 Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Thu, 17 Jul 2025 15:36:53 +0600 Subject: [PATCH 097/115] lockfile --- Cargo.lock | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1520becf..f38adc1f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -347,6 +347,16 @@ dependencies = [ "half", ] +[[package]] +name = "cipher" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" +dependencies = [ + "crypto-common", + "inout", +] + [[package]] name = "clang-sys" version = "1.8.1" @@ -356,13 +366,6 @@ dependencies = [ "glob", "libc", "libloading", -name = "cipher" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" -dependencies = [ - "crypto-common", - "inout", ] [[package]] @@ -873,12 +876,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] -name = "home" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf" -dependencies = [ - "windows-sys 0.59.0", name = "hmac" version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -887,6 +884,15 @@ dependencies = [ "digest", ] +[[package]] +name = "home" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf" +dependencies = [ + "windows-sys 0.59.0", +] + [[package]] name = "http" version = "1.3.1" @@ -1210,6 +1216,8 @@ name = "lazycell" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" + +[[package]] name = "libbz2-rs-sys" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1229,6 +1237,9 @@ checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667" dependencies = [ "cfg-if", "windows-targets 0.53.2", +] + +[[package]] name = "liblzma" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1534,16 +1545,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] -name = "prettyplease" -version = "0.2.35" name = "ppmd-rust" version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c834641d8ad1b348c9ee86dec3b9840d805acd5f24daa5f90c788951a52ff59b" [[package]] -name = "ppv-lite86" -version = "0.2.21" +name = "prettyplease" +version = "0.2.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "061c1221631e079b26479d25bbf2275bfe5917ae8419cd7e34f13bfc2aa7539a" dependencies = [ From e42e8e2daf71ff1d79af0f8fb6968c5f4f1b0632 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 18 Jul 2025 15:11:52 +0600 Subject: [PATCH 098/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 001618c1..5c4bf5ba 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -20,32 +20,28 @@ pkgver() { prepare() { cd "$srcdir/rustowl" - export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 - rustup component add rust-src rustc-dev llvm-tools + export script_dir="$(cd $(dirname "$0"); pwd)" + export $(/bin/sh "$script_dir/print-env.sh" "$(cat "${script_dir}/channel")") cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } build() { cd "$srcdir/rustowl" - export CARGO_TARGET_DIR=target - export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl - cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" + ./scripts/build/toolchain cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } check() { cd "$srcdir/rustowl" - export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 + export script_dir="$(cd $(dirname "$0"); pwd)" + export $(/bin/sh "$script_dir/print-env.sh" "$(cat "${script_dir}/channel")") cargo test --frozen --all-features } package() { cd "$srcdir/rustowl" find target -type d | grep -E 'rustowl-build-time-out$' | xargs -I % cp -r % ./ - ./target/"$(rustc --print=host-tuple)"/release/rustowl toolchain install --path sysroot/"$(rustup show active-toolchain | awk '{ print $1 }')" + ./target/"$(rustc --print=host-tuple)"/release/rustowl toolchain install --path sysroot/"$(rustup show active-toolchain | awk '{ print $1 }')" --skip-rustowl-toolchain install -d -m 755 "$pkgdir/opt/rustowl" cp -a sysroot/ "$pkgdir/opt/rustowl/" install -Dm0755 -t "$pkgdir/usr/bin/" "target/$(rustc --print=host-tuple)/release/rustowl" From d9791e4254225569355583addfa7b2d5610f621d Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 18 Jul 2025 15:15:48 +0600 Subject: [PATCH 099/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 5c4bf5ba..0646f833 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -20,8 +20,9 @@ pkgver() { prepare() { cd "$srcdir/rustowl" - export script_dir="$(cd $(dirname "$0"); pwd)" - export $(/bin/sh "$script_dir/print-env.sh" "$(cat "${script_dir}/channel")") + script_dir="$(cd "$(dirname "$0")"; pwd)" + export script_dir + export "$(/bin/sh "$script_dir/print-env.sh" "$(cat "${script_dir}/channel")")" cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } @@ -33,8 +34,9 @@ build() { check() { cd "$srcdir/rustowl" - export script_dir="$(cd $(dirname "$0"); pwd)" - export $(/bin/sh "$script_dir/print-env.sh" "$(cat "${script_dir}/channel")") + script_dir="$(cd "$(dirname "$0")"; pwd)" + export script_dir + export "$(/bin/sh "$script_dir/print-env.sh" "$(cat "${script_dir}/channel")")" cargo test --frozen --all-features } From 3a5a0807e8f7446597f10833b13444993f8d057d Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Fri, 18 Jul 2025 15:20:22 +0600 Subject: [PATCH 100/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 0646f833..c5f15652 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -20,9 +20,7 @@ pkgver() { prepare() { cd "$srcdir/rustowl" - script_dir="$(cd "$(dirname "$0")"; pwd)" - export script_dir - export "$(/bin/sh "$script_dir/print-env.sh" "$(cat "${script_dir}/channel")")" + export "$(/bin/sh "./scripts/build/print-env.sh" "$(cat "./scripts/build/channel")")" cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } @@ -34,9 +32,7 @@ build() { check() { cd "$srcdir/rustowl" - script_dir="$(cd "$(dirname "$0")"; pwd)" - export script_dir - export "$(/bin/sh "$script_dir/print-env.sh" "$(cat "${script_dir}/channel")")" + export "$(/bin/sh "./scripts/build/print-env.sh" "$(cat "./scripts/build/channel")")" cargo test --frozen --all-features } From 061a63f9dd6a9979078d700762b52e54c1d169dd Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sat, 19 Jul 2025 22:14:54 +0600 Subject: [PATCH 101/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 37cddcf1..6b7615b1 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -41,7 +41,11 @@ jobs: shellcheck \ debugedit \ fakeroot \ - sudo + sudo \ + pkgconf \ + libc++ \ + cmake \ + openssl - name: Setup build user run: | From e2961820f1d9979e274249ddd512a1454bdd0d3a Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sun, 27 Jul 2025 21:04:30 +0600 Subject: [PATCH 102/115] Update aur-check.yml --- .github/workflows/aur-check.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 6b7615b1..480a0e68 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -18,7 +18,7 @@ jobs: name: Arch Linux Container Build & Test runs-on: ubuntu-latest container: - image: archlinux/archlinux:latest + image: archlinux/archlinux:multilib-devel steps: - name: Checkout repository @@ -45,7 +45,9 @@ jobs: pkgconf \ libc++ \ cmake \ - openssl + openssl \ + clang \ + llvm - name: Setup build user run: | From e52af9945f624e36fa461231fc6503b79f1ac143 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sun, 27 Jul 2025 21:41:12 +0600 Subject: [PATCH 103/115] Update aur/PKGBUILD Co-authored-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com> --- aur/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 83f743bf..04f18647 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('rustup' 'gcc' 'make' 'autoconf') +makedepends=('rustup' 'gcc' 'make' 'autoconf' 'jemalloc') depends=() conflicts=('rustowl-git' 'rustowl-bin') arch=('any') From 39a1a0183cbd4b27bf09174f2fb5ffd0e28c3056 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sun, 27 Jul 2025 21:42:02 +0600 Subject: [PATCH 104/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index c5f15652..4ab216bc 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'gcc' 'make' 'autoconf') +makedepends=('git' 'rustup' 'gcc' 'make' 'autoconf' 'jemalloc') arch=('any') source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') From b7829f61efde01e4c18a8a8cf6790f1358a80276 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sun, 27 Jul 2025 21:42:27 +0600 Subject: [PATCH 105/115] Apply suggestion from @avifenesh Co-authored-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com> --- aur/PKGBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 04f18647..f65b6829 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -28,6 +28,7 @@ build() { export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl + export RUSTFLAGS="-C link-arg=-ljemalloc" cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } From d69b87e92b5be31d862181894abb986fbadde372 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sun, 27 Jul 2025 21:43:41 +0600 Subject: [PATCH 106/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 1 + 1 file changed, 1 insertion(+) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 4ab216bc..be31efbe 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -27,6 +27,7 @@ prepare() { build() { cd "$srcdir/rustowl" export RUSTOWL_RUNTIME_DIRS=/opt/rustowl + export RUSTFLAGS="-C link-arg=-ljemalloc" ./scripts/build/toolchain cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } From 3e47a567b56e99ffc592641d7f84310e0eb1193c Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sun, 27 Jul 2025 21:45:30 +0600 Subject: [PATCH 107/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index be31efbe..2e77290c 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -21,7 +21,7 @@ pkgver() { prepare() { cd "$srcdir/rustowl" export "$(/bin/sh "./scripts/build/print-env.sh" "$(cat "./scripts/build/channel")")" - cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" + ./scripts/build/toolchain cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } build() { @@ -34,7 +34,7 @@ build() { check() { cd "$srcdir/rustowl" export "$(/bin/sh "./scripts/build/print-env.sh" "$(cat "./scripts/build/channel")")" - cargo test --frozen --all-features + ./scripts/build/toolchain cargo test --frozen --all-features } package() { From 768fd3d4cd3865b8dc76612b576a34f9c88bed14 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sun, 27 Jul 2025 21:49:07 +0600 Subject: [PATCH 108/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 -- 1 file changed, 2 deletions(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 2e77290c..c949bea7 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -20,7 +20,6 @@ pkgver() { prepare() { cd "$srcdir/rustowl" - export "$(/bin/sh "./scripts/build/print-env.sh" "$(cat "./scripts/build/channel")")" ./scripts/build/toolchain cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } @@ -33,7 +32,6 @@ build() { check() { cd "$srcdir/rustowl" - export "$(/bin/sh "./scripts/build/print-env.sh" "$(cat "./scripts/build/channel")")" ./scripts/build/toolchain cargo test --frozen --all-features } From ba0babd3172732eb17fcc48603b83da5d0e0531a Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sun, 27 Jul 2025 21:58:15 +0600 Subject: [PATCH 109/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index c949bea7..9fc1a926 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -20,19 +20,25 @@ pkgver() { prepare() { cd "$srcdir/rustowl" - ./scripts/build/toolchain cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" + export RUSTC_BOOTSTRAP=1 + export RUSTUP_TOOLCHAIN=1.88.0 + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } build() { cd "$srcdir/rustowl" + export RUSTC_BOOTSTRAP=1 + export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl export RUSTFLAGS="-C link-arg=-ljemalloc" - ./scripts/build/toolchain cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" + cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } check() { cd "$srcdir/rustowl" - ./scripts/build/toolchain cargo test --frozen --all-features + export RUSTC_BOOTSTRAP=1 + export RUSTUP_TOOLCHAIN=1.88.0 + cargo test --frozen --all-features } package() { From d24395794ac23cc50424858b78650c6886eaaa04 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sun, 27 Jul 2025 22:03:40 +0600 Subject: [PATCH 110/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 1 + 1 file changed, 1 insertion(+) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 9fc1a926..c6ec1c3e 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -22,6 +22,7 @@ prepare() { cd "$srcdir/rustowl" export RUSTC_BOOTSTRAP=1 export RUSTUP_TOOLCHAIN=1.88.0 + rustup component add rust-src rustc-dev llvm-tools cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } From 41dea8532452f055a2df9768969b24e145bcf2f1 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sun, 27 Jul 2025 22:33:10 +0600 Subject: [PATCH 111/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index c6ec1c3e..269be87d 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'gcc' 'make' 'autoconf' 'jemalloc') +makedepends=('git' 'rustup' 'gcc' 'make' 'autoconf' 'jemalloc' 'cmake') arch=('any') source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') From 3c1479b591a178037ae5e09f292179da6b0c6f7e Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Sun, 27 Jul 2025 22:40:07 +0600 Subject: [PATCH 112/115] Update PKGBUILD-GIT --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 269be87d..199b0c09 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -32,7 +32,7 @@ build() { export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl export RUSTFLAGS="-C link-arg=-ljemalloc" - cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" + cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" -vvvv } check() { From 536ddcdc77492edc2a099952fd8caf16361830aa Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Mon, 28 Jul 2025 14:51:51 +0600 Subject: [PATCH 113/115] last try (as found on https://aur.archlinux.org/packages/aws-lc) --- .github/workflows/aur-check.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 480a0e68..5d6f5e2e 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -47,7 +47,13 @@ jobs: cmake \ openssl \ clang \ - llvm + llvm \ + perl \ + ninja \ + go \ + git \ + glibc \ + gcc-libs - name: Setup build user run: | From f841aa92d9cbc15680805ea2c42bb68e35718383 Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Mon, 11 Aug 2025 16:20:27 +0600 Subject: [PATCH 114/115] fix: final fixes (not validated) --- .github/workflows/aur-check.yml | 44 +++------------------------------ aur/PKGBUILD | 16 +++--------- aur/PKGBUILD-GIT | 16 +++--------- 3 files changed, 11 insertions(+), 65 deletions(-) diff --git a/.github/workflows/aur-check.yml b/.github/workflows/aur-check.yml index 5d6f5e2e..2fbdfd53 100644 --- a/.github/workflows/aur-check.yml +++ b/.github/workflows/aur-check.yml @@ -18,8 +18,7 @@ jobs: name: Arch Linux Container Build & Test runs-on: ubuntu-latest container: - image: archlinux/archlinux:multilib-devel - + image: archlinux/archlinux:latest steps: - name: Checkout repository uses: actions/checkout@v4 @@ -38,28 +37,7 @@ jobs: pacman -S --noconfirm \ namcap \ - shellcheck \ - debugedit \ - fakeroot \ - sudo \ - pkgconf \ - libc++ \ - cmake \ - openssl \ - clang \ - llvm \ - perl \ - ninja \ - go \ - git \ - glibc \ - gcc-libs - - - name: Setup build user - run: | - useradd -m -s /bin/bash builder - - echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers + shellcheck - name: Validate PKGBUILD files run: | @@ -75,7 +53,7 @@ jobs: WHITE='\033[1;37m' NC='\033[0m' # No Color - for pathname in aur/PKGBUILD-GIT*; do + for pathname in aur/PKGBUILD*; do if [ -f "${pathname}" ]; then filename=$(basename ${pathname}) dirname=$(dirname ${pathname}) @@ -90,9 +68,6 @@ jobs: exit 1 fi - chown -R builder:builder "${pathname}" - chown -R builder:builder "${dirname}" - echo -e "${BLUE}============ Running Namcap On${NC} ${filename} ${BLUE}============${NC}\n" if namcap "${pathname}"; then echo -e "${GREEN}✅ Namcap passed${NC}" @@ -101,19 +76,6 @@ jobs: exit 1 fi - echo -e "${MAGENTA}============ Running Makepkg On${NC} ${filename} ${MAGENTA}============${NC}" - - if sudo -u builder bash -c " - set -e - cd '${dirname}' - makepkg -scf --noconfirm -p '${filename}' - "; then - echo -e "${GREEN}✅ Makepkg completed successfully${NC}" - else - echo -e "${RED}❌ Makepkg failed${NC}" - exit 1 - fi - echo -e "${GREEN}🎉 ${filename} Validation Completed Successfully!${NC}" echo "" fi diff --git a/aur/PKGBUILD b/aur/PKGBUILD index f65b6829..24989062 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('rustup' 'gcc' 'make' 'autoconf' 'jemalloc') +makedepends=('gcc' 'make' 'autoconf' 'cmake' 'curl') depends=() conflicts=('rustowl-git' 'rustowl-bin') arch=('any') @@ -16,27 +16,19 @@ sha256sums=('fa120643aeb48061eb32a7c993dabff88aa4e9d0b32f8ab0f3289b3fb2cf5744') prepare() { cd rustowl-${pkgver} - export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 - rustup component add rust-src rustc-dev llvm-tools - cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" + ./scripts/build/toolchain cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } build() { cd rustowl-${pkgver} export CARGO_TARGET_DIR=target - export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl - export RUSTFLAGS="-C link-arg=-ljemalloc" - cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" + ./scripts/build/toolchain cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } check() { cd rustowl-${pkgver} - export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 - cargo test --frozen --all-features + ./scripts/build/toolchain cargo test --frozen --all-features } package() { diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index 199b0c09..f6069edd 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -7,7 +7,7 @@ pkgrel=1 pkgdesc='Visualize Ownership and Lifetimes in Rust' url='https://github.com/cordx56/rustowl' license=('MPL-2.0') -makedepends=('git' 'rustup' 'gcc' 'make' 'autoconf' 'jemalloc' 'cmake') +makedepends=('git' 'gcc' 'make' 'autoconf' 'cmake' 'curl') arch=('any') source=("git+https://github.com/cordx56/rustowl.git") sha256sums=('SKIP') @@ -20,26 +20,18 @@ pkgver() { prepare() { cd "$srcdir/rustowl" - export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 - rustup component add rust-src rustc-dev llvm-tools - cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" + ./scripts/build/toolchain cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } build() { cd "$srcdir/rustowl" - export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 export RUSTOWL_RUNTIME_DIRS=/opt/rustowl - export RUSTFLAGS="-C link-arg=-ljemalloc" - cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" -vvvv + ./scripts/build/toolchain cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" -vvvv } check() { cd "$srcdir/rustowl" - export RUSTC_BOOTSTRAP=1 - export RUSTUP_TOOLCHAIN=1.88.0 - cargo test --frozen --all-features + ./scripts/build/toolchain cargo test --frozen --all-features } package() { From 932e9dc6bac9cc7a64d7134fffb83f52511f1991 Mon Sep 17 00:00:00 2001 From: MuntasirSZN Date: Tue, 13 Jan 2026 17:24:03 +0600 Subject: [PATCH 115/115] chore: final update wait for merge --- aur/PKGBUILD-GIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aur/PKGBUILD-GIT b/aur/PKGBUILD-GIT index f6069edd..5afef3e2 100644 --- a/aur/PKGBUILD-GIT +++ b/aur/PKGBUILD-GIT @@ -26,7 +26,7 @@ prepare() { build() { cd "$srcdir/rustowl" export RUSTOWL_RUNTIME_DIRS=/opt/rustowl - ./scripts/build/toolchain cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" -vvvv + ./scripts/build/toolchain cargo build --frozen --release --all-features --target "$(rustc --print=host-tuple)" } check() {