clone

one developer profile for links and private tcp services, reached peer to peer over iroh with no open ports

perf: minify and compress web assets

Dami committed a8d0f6f
Minify production HTML, CSS, and JavaScript in the container build. Negotiate Brotli or gzip at the origin and keep anonymous identity probes out of the browser error console.
commit
a8d0f6f4c8a95d437ec47a032a99dda1aa9802ee
parent
0625da737cf0b3c4b964be16b323e12ce091aca2
author
Dami <dami.etoile@gmail.com>
5 files changed, +155 -6
MCargo.lock108++++++++++++++++++++++++++++++
MDockerfile32++++++++-
Mcrates/devsite-server/Cargo.toml8++-
Mcrates/devsite-server/src/api.rs9++-
Mcrates/devsite-server/src/main.rs4+
M Cargo.lock +108 -0
@@ -2,6 +2,12 @@
22 # It is not intended for manual editing.33 version = 444 5+[[package]]6+name = "adler2"7+version = "2.0.1"8+source = "registry+https://github.com/rust-lang/crates.io-index"9+checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"10+511 [[package]]612 name = "aead"713 version = "0.5.2"
@@ -46,6 +52,21 @@ dependencies = [
4652 "memchr",4753 ]4854 55+[[package]]56+name = "alloc-no-stdlib"57+version = "2.0.4"58+source = "registry+https://github.com/rust-lang/crates.io-index"59+checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"60+61+[[package]]62+name = "alloc-stdlib"63+version = "0.2.4"64+source = "registry+https://github.com/rust-lang/crates.io-index"65+checksum = "0e76a019e91224d279006ff972f1e984179a6e9feb050adba6ce8274aef23195"66+dependencies = [67+ "alloc-no-stdlib",68+]69+4970 [[package]]5071 name = "allocator-api2"5172 version = "0.2.21"
@@ -138,6 +159,18 @@ version = "0.7.8"
138159 source = "registry+https://github.com/rust-lang/crates.io-index"139160 checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"140161 162+[[package]]163+name = "async-compression"164+version = "0.4.43"165+source = "registry+https://github.com/rust-lang/crates.io-index"166+checksum = "3976abdc8fe7d1133d43d304afd42abdf5bc3e1319d263d223bde07b5efc4be8"167+dependencies = [168+ "compression-codecs",169+ "compression-core",170+ "pin-project-lite",171+ "tokio",172+]173+141174 [[package]]142175 name = "async-trait"143176 version = "0.1.92"
@@ -324,6 +357,27 @@ dependencies = [
324357 "objc2",325358 ]326359 360+[[package]]361+name = "brotli"362+version = "8.0.4"363+source = "registry+https://github.com/rust-lang/crates.io-index"364+checksum = "5cc91aac060a7a1e25823bdccbfb6af1875b88f17c6daac97894eed8207166b3"365+dependencies = [366+ "alloc-no-stdlib",367+ "alloc-stdlib",368+ "brotli-decompressor",369+]370+371+[[package]]372+name = "brotli-decompressor"373+version = "5.0.3"374+source = "registry+https://github.com/rust-lang/crates.io-index"375+checksum = "3a32acac15fe1967bc3986b2a6347dffc965602354ea6f450ad07e8bfd253583"376+dependencies = [377+ "alloc-no-stdlib",378+ "alloc-stdlib",379+]380+327381 [[package]]328382 name = "bumpalo"329383 version = "3.20.3"
@@ -468,6 +522,24 @@ dependencies = [
468522 "memchr",469523 ]470524 525+[[package]]526+name = "compression-codecs"527+version = "0.4.38"528+source = "registry+https://github.com/rust-lang/crates.io-index"529+checksum = "ce2548391e9c1929c21bf6aa2680af86fe4c1b33e6cea9ac1cfeec0bd11218cf"530+dependencies = [531+ "brotli",532+ "compression-core",533+ "flate2",534+ "memchr",535+]536+537+[[package]]538+name = "compression-core"539+version = "0.4.32"540+source = "registry+https://github.com/rust-lang/crates.io-index"541+checksum = "cc14f565cf027a105f7a44ccf9e5b424348421a1d8952a8fc9d499d313107789"542+471543 [[package]]472544 name = "const-oid"473545 version = "0.9.6"
@@ -549,6 +621,15 @@ dependencies = [
549621 "libc",550622 ]551623 624+[[package]]625+name = "crc32fast"626+version = "1.5.0"627+source = "registry+https://github.com/rust-lang/crates.io-index"628+checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"629+dependencies = [630+ "cfg-if",631+]632+552633 [[package]]553634 name = "critical-section"554635 version = "1.2.0"
@@ -1037,6 +1118,16 @@ version = "0.1.10"
10371118 source = "registry+https://github.com/rust-lang/crates.io-index"10381119 checksum = "26b73573e6edcd2af0cdf47bd6cb58f0b3839491263c314eaad1ccf24430e1de"10391120 1121+[[package]]1122+name = "flate2"1123+version = "1.1.9"1124+source = "registry+https://github.com/rust-lang/crates.io-index"1125+checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"1126+dependencies = [1127+ "crc32fast",1128+ "miniz_oxide",1129+]1130+10401131 [[package]]10411132 name = "fnv"10421133 version = "1.0.7"
@@ -2112,6 +2203,16 @@ dependencies = [
21122203 "unicase",21132204 ]21142205 2206+[[package]]2207+name = "miniz_oxide"2208+version = "0.8.9"2209+source = "registry+https://github.com/rust-lang/crates.io-index"2210+checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"2211+dependencies = [2212+ "adler2",2213+ "simd-adler32",2214+]2215+21152216 [[package]]21162217 name = "mio"21172218 version = "1.2.2"
@@ -3457,6 +3558,12 @@ dependencies = [
34573558 "rand_core 0.10.1",34583559 ]34593560 3561+[[package]]3562+name = "simd-adler32"3563+version = "0.3.10"3564+source = "registry+https://github.com/rust-lang/crates.io-index"3565+checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"3566+34603567 [[package]]34613568 name = "simd_cesu8"34623569 version = "1.2.0"
@@ -3911,6 +4018,7 @@ version = "0.6.11"
39114018 source = "registry+https://github.com/rust-lang/crates.io-index"39124019 checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"39134020 dependencies = [4021+ "async-compression",39144022 "bitflags",39154023 "bytes",39164024 "futures-core",
M Dockerfile +30 -2
M crates/devsite-server/Cargo.toml +7 -1
M crates/devsite-server/src/api.rs +6 -3
M crates/devsite-server/src/main.rs +4 -0