form 0.2.0

A small script to move inline modules into the proper directory structure
form-0.2.0 is not a library.
Visit the last successful build: form-0.12.1

crates.io badge

A library for splitting apart a large file with multiple modules into the idiomatic rust directory structure, intended for use with svd2rust. Creates a lib.rs as well as a subdirectory structure in the target directory. It's advised (but not necessary) to use scalafmt afterwards. Usage:

    -i, --input FILE    input file to read instead of stdin
    -o, --outdir DIR    set output directory
    -h, --help          print this help menu

Does not create the cargo project or the cargo manifest file.

TODO: - better error handling

current usage: RUST_LOG=form=debug RUST_BACKTRACE=1 cargo run --release -- -i ~/private/code/form/resources/full-lib.rs -f -o ~/private/code/form/test/src