<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/tag/include_bytes/feed</link><description>多元化原創文章，內容包羅萬象，有程式語言、網站應用、軟體介紹、硬體介紹、作業系統、旅行遊記、專題採訪、益智問題、文學創作，以及作者們的知識分享和作品分享。</description><language>zh-TW</language><lastBuildDate>Mon, 6 Apr 2026 07:00:32 +0000</lastBuildDate><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>Rust程式語言可以單檔執行！如何把外部檔案和Rust程式編譯在一起？</title><link>https://magiclen.org/lazy-static-include</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt="">
在開發應用程式的時候，常會需要在程式加入圖片、聲音等等的素材。以開發Web應用程式來說，還會需要用到很多HTML模板、CSS、JavaScript、語言檔、資料庫設定檔等等的素材檔案。這些素材檔案常因為放不進程式執行檔中，而只好另外放在檔案系統的某個目錄下，由程式在執行階段的時候再去讀取。像這樣程式和素材分開的存放的作法雖然很常見，但其實會引發許多問題。例如，在設定程式執行環境的時候，工序會變得複...]]></description><category>研究分享</category><category>Rust</category><category>Rust</category><category>lazy-static-include</category><category>include_str</category><category>include_bytes</category><guid>https://magiclen.org/lazy-static-include</guid><pubDate>Fri, 26 Oct 2018 12:00:47 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>