1 unstable release

0.1.0 Mar 18, 2024

#208 in Build Utils

Download history 61/week @ 2024-03-12 51/week @ 2024-03-19 5/week @ 2024-03-26 17/week @ 2024-04-02

134 downloads per month

MIT license

40KB
176 lines

Nedry 🦖 - A bundler for C

movie clip

You know anybody who can network 8 connection machine and debug 2 MILLION lines of code.

What is this

This is mainly use for competitive programming & CS class. Most online judge system used in collage only accept C without dependency. This tool will auto replace #include with actual code.

Support List

  • #include "file_here"
  • #include "file_here.h" will also try to include file_here.c
  • Duplicate include will be ignore

Know Limitation

  • Cannot resolve #include correctly in some nest macro (#if/#ifdef)

Usage

To bundle test.c to test.bundle.c run

nedry -i test.c bundle -o test.bundle.c

Command list

$ nedry
Usage: nedry --input <INPUT> <COMMAND>

Commands:
  bundle  Bundle all dependency to single file
  build   Build file to an executable file
  run     Build & Run file
  help    Print this message or the help of the given subcommand(s)

Options:
  -i, --input <INPUT>  The entry point file
  -h, --help           Print help (see more with '--help')

Dependencies

~3MB
~59K SLoC