#single-file #inline #utility #crates #input-file #file-exists

app inline-crate

A small helper tool that to inline an entire Rust crate into a single file

2 releases

0.1.1 Aug 2, 2024
0.1.0 Nov 2, 2023

#577 in Development tools

Download history 7/week @ 2024-07-25 95/week @ 2024-08-01 4/week @ 2024-08-08

74 downloads per month

BSD-3-Clause

9KB
133 lines

Inline Crate

crates.io license

A small helper tool to inline an entire Rust crate into a single file

Install

cargo install inline-crate --locked

Usage

$ inline-crate --help
Inline an entire crate into a single file

Aimed at making it easy to distribute reproducers, or run minimizers.

If an output path is passed, then outputs to the file, otherwise outputs to stdout.

Usage: inline-crate [OPTIONS] <CRATE_ROOT> [OUTPUT_FILE]

Arguments:
  <CRATE_ROOT>
          The input crate root

  [OUTPUT_FILE]
          The output file (default: stdout)

Options:
  -v, --verbose
          Print verbose output

      --ignore-missing
          Ignore missing modules

  -f, --force
          Force writing, even if the file exists

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

License

BSD 3-Clause License

Dependencies

~3.5MB
~36K SLoC