Compare commits
4 Commits
release-20
...
release-20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
48221b039e | ||
|
|
60354b66d1 | ||
|
|
0433406288 | ||
|
|
5d8cdd7760 |
@@ -1,5 +0,0 @@
|
|||||||
[build]
|
|
||||||
rustflags = ["-C", "target-feature=-bulk-memory"]
|
|
||||||
|
|
||||||
[target.wasm32-unknown-unknown]
|
|
||||||
rustflags = ["-C", "target-feature=-bulk-memory"]
|
|
||||||
@@ -516,9 +516,9 @@ async fn main() {
|
|||||||
.layer(TraceLayer::new_for_http())
|
.layer(TraceLayer::new_for_http())
|
||||||
.layer(
|
.layer(
|
||||||
CompressionLayer::new()
|
CompressionLayer::new()
|
||||||
.br(false)
|
.br(true)
|
||||||
.gzip(true)
|
.gzip(true)
|
||||||
.quality(CompressionLevel::Fastest),
|
.quality(CompressionLevel::Best),
|
||||||
)
|
)
|
||||||
.layer(
|
.layer(
|
||||||
ServiceBuilder::new()
|
ServiceBuilder::new()
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ RUN apt-get update && apt-get install -y \
|
|||||||
jq \
|
jq \
|
||||||
# Needed for some crate compilations
|
# Needed for some crate compilations
|
||||||
protobuf-compiler \
|
protobuf-compiler \
|
||||||
|
# Install binaryen to have wasm-opt available system-wide
|
||||||
|
binaryen \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# 2. Install Node.js v20 (Manual install to support multi-arch cleanly)
|
# 2. Install Node.js v20 (Manual install to support multi-arch cleanly)
|
||||||
@@ -70,7 +72,7 @@ RUN . "$HOME/.cargo/env" && \
|
|||||||
ARCH=$(dpkg --print-architecture) && \
|
ARCH=$(dpkg --print-architecture) && \
|
||||||
if [ "$ARCH" = "amd64" ]; then TRUNK_ARCH="x86_64-unknown-linux-gnu"; \
|
if [ "$ARCH" = "amd64" ]; then TRUNK_ARCH="x86_64-unknown-linux-gnu"; \
|
||||||
elif [ "$ARCH" = "arm64" ]; then TRUNK_ARCH="aarch64-unknown-linux-gnu"; fi && \
|
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 && \
|
chmod +x /root/.cargo/bin/trunk && \
|
||||||
# Install wasm-bindgen-cli (Compiling from source to avoid glibc issues, doing it ONCE here)
|
# Install wasm-bindgen-cli (Compiling from source to avoid glibc issues, doing it ONCE here)
|
||||||
cargo install wasm-bindgen-cli --version 0.2.108
|
cargo install wasm-bindgen-cli --version 0.2.108
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
[build]
|
|
||||||
rustflags = ["-C", "target-feature=-bulk-memory"]
|
|
||||||
|
|
||||||
[target.wasm32-unknown-unknown]
|
|
||||||
rustflags = ["-C", "target-feature=-bulk-memory"]
|
|
||||||
@@ -52,3 +52,15 @@ web-sys = { version = "0.3", features = [
|
|||||||
shared = { path = "../shared" }
|
shared = { path = "../shared" }
|
||||||
tailwind_fuse = "0.3.2"
|
tailwind_fuse = "0.3.2"
|
||||||
js-sys = "0.3.85"
|
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
|
||||||
|
|||||||
@@ -10,6 +10,3 @@ command_arguments = ["-c", "npx @tailwindcss/cli -i input.css -o public/tailwind
|
|||||||
[build]
|
[build]
|
||||||
target = "index.html"
|
target = "index.html"
|
||||||
dist = "dist"
|
dist = "dist"
|
||||||
|
|
||||||
[tools]
|
|
||||||
wasm_opt = "version_121"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user