Registry / build-tool / static-files

static-files

JSON →
library0.3.1rscratesunverified

Automates collection and embedding of static resources into Rust binaries.

# Cargo.toml [dependencies] static-files = "0.3.1"
INSTALL
IMPORT
SIG · STATIC-FILES
S
static-files
build-toolrustv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

resource
use static_files::resource;

Minimal example retrieving an embedded static resource.

use static_files::resource; fn main() { let content = resource("index.html").unwrap(); println!("Resource size: {}", content.len()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
20
OpenAI (training)
1
Resources
static-files — cargo add static-files · libregistry