Compare commits

...

4 Commits

Author SHA1 Message Date
spinline
48221b039e fix: build stabilitesi için wasm-opt ve bulk-memory ayarları geri alındı
All checks were successful
Build MIPS Binary / build (push) Successful in 4m52s
2026-02-08 17:37:21 +03:00
spinline
60354b66d1 fix: rustflags sadece wasm32 hedefine özel hale getirilerek uyarılar temizlendi
Some checks failed
Build MIPS Binary / build (push) Failing after 1m2s
2026-02-08 17:31:31 +03:00
spinline
0433406288 perf: WASM boyutunu minimize etmek için agresif profil ayarları ve Brotli eklendi
Some checks failed
Build MIPS Binary / build (push) Failing after 1m14s
2026-02-08 17:29:19 +03:00
spinline
5d8cdd7760 build: build ortamı güncellendi (Trunk v0.21.14 ve binaryen eklendi), optimizasyonlar tekrar açıldı
Some checks failed
Build MIPS Binary / build (push) Failing after 1m2s
2026-02-08 16:51:40 +03:00
6 changed files with 17 additions and 16 deletions

View File

@@ -1,5 +0,0 @@
[build]
rustflags = ["-C", "target-feature=-bulk-memory"]
[target.wasm32-unknown-unknown]
rustflags = ["-C", "target-feature=-bulk-memory"]

View File

@@ -516,9 +516,9 @@ async fn main() {
.layer(TraceLayer::new_for_http())
.layer(
CompressionLayer::new()
.br(false)
.br(true)
.gzip(true)
.quality(CompressionLevel::Fastest),
.quality(CompressionLevel::Best),
)
.layer(
ServiceBuilder::new()

View File

@@ -20,6 +20,8 @@ RUN apt-get update && apt-get install -y \
jq \
# Needed for some crate compilations
protobuf-compiler \
# Install binaryen to have wasm-opt available system-wide
binaryen \
&& rm -rf /var/lib/apt/lists/*
# 2. Install Node.js v20 (Manual install to support multi-arch cleanly)
@@ -70,7 +72,7 @@ RUN . "$HOME/.cargo/env" && \
ARCH=$(dpkg --print-architecture) && \
if [ "$ARCH" = "amd64" ]; then TRUNK_ARCH="x86_64-unknown-linux-gnu"; \
elif [ "$ARCH" = "arm64" ]; then TRUNK_ARCH="aarch64-unknown-linux-gnu"; fi && \
wget -qO- "https://github.com/trunk-rs/trunk/releases/download/v0.21.5/trunk-$TRUNK_ARCH.tar.gz" | tar -xzf - -C /root/.cargo/bin/ && \
wget -qO- "https://github.com/trunk-rs/trunk/releases/download/v0.21.14/trunk-$TRUNK_ARCH.tar.gz" | tar -xzf - -C /root/.cargo/bin/ && \
chmod +x /root/.cargo/bin/trunk && \
# Install wasm-bindgen-cli (Compiling from source to avoid glibc issues, doing it ONCE here)
cargo install wasm-bindgen-cli --version 0.2.108

View File

@@ -1,5 +0,0 @@
[build]
rustflags = ["-C", "target-feature=-bulk-memory"]
[target.wasm32-unknown-unknown]
rustflags = ["-C", "target-feature=-bulk-memory"]

View File

@@ -52,3 +52,15 @@ web-sys = { version = "0.3", features = [
shared = { path = "../shared" }
tailwind_fuse = "0.3.2"
js-sys = "0.3.85"
[profile.release]
# En yüksek seviyede boyut optimizasyonu
opt-level = "z"
# Tüm kütüphaneler arasında link-time optimizasyonu yapar (Çok etkilidir)
lto = true
# Kod üretim birimini 1'e düşürerek daha iyi optimizasyon sağlar
codegen-units = 1
# Hata durumunda stack unwinding yerine doğrudan durur (Kod boyutunu düşürür)
panic = "abort"
# Sembolleri ve debug bilgilerini siler
strip = true

View File

@@ -10,6 +10,3 @@ command_arguments = ["-c", "npx @tailwindcss/cli -i input.css -o public/tailwind
[build]
target = "index.html"
dist = "dist"
[tools]
wasm_opt = "version_121"