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

app inline-crate

一个小型辅助工具,可以将整个 Rust crate 内联到单个文件中

2 个版本

0.1.1 2024 年 8 月 2 日
0.1.0 2023 年 11 月 2 日

#551 in 开发工具

Download history 93/week @ 2024-07-29 13/week @ 2024-08-05

每月 106 次下载

BSD-3-Clause

9KB
133 代码行

内联 Crate

crates.io license

一个小型辅助工具,可以将整个 Rust crate 内联到单个文件中

安装

cargo install inline-crate --locked

用法

$ 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

许可证

BSD 3-Clause 许可证

依赖项

~3.5MB
~37K SLoC