2 unstable releases
0.2.0 | Apr 22, 2023 |
---|---|
0.1.0 | Mar 19, 2023 |
#1355 in Filesystem
60KB
1.5K
SLoC
Packler, bundle Rust for the web
Warning This is not ready yet.
Usage
A basic xtask main file using Packler:
use packler::{pipelines::assets::bucket::AssetsBucketParams, PacklerConfig, PacklerParams, Run};
fn main() {
dotenv::from_filename(".env.deploy").ok();
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init();
let run = Run::new(
PacklerParams::new(
["app.scss", "admin.scss"],
[""; 0], // No WASM frontend
Some("server"),
Some(AssetsBucketParams {
bucket_name: "bucket-with-assets".to_owned(),
bucket_region: "fr-par".to_owned(),
bucket_endpoint_url: "https://s3.fr-par.scw.cloud".to_owned(),
allowed_origins: vec!["http://example.com".to_string()],
}),
),
PacklerConfig::default(),
);
run.start();
}
Book
Run the devserver with $ mdbook serve book/ --open
.
Other
- cargo-leptos, the cargo tools for leptos.
- trunk, a tool to build/bundle/ship wasm apps
- rspack, a frontend toolchain by Bytedance
Dependencies
~36–51MB
~774K SLoC