bundler-0.1.1 doesn't have any documentation.
rust-bundler
Creates a single-source-file version of a Cargo package.
Features
- Replaces
extern crate my_lib;
inmain.rs
with the contents oflib.rs
. - Expands
mod my_mod;
declarations intomod my_mod { ... }
blocks.
Example
Input:
// src/lib.rs:
pub use hello_world;
// src/internal.rs:
// src/main.rs:
extern crate example;
Output:
pub use hello_world;
More examples in tests/testdata.
Usage
Install:
Run:
Library Usage
[]
= "0.1.1"
extern crate bundler;
Similar Projects
- lpenz/rust-sourcebundler is based on regular expressions, whereas this project manipulates the syntax tree
- golang.org/x/tools/cmd/bundle for Go