(where lit is set up by reading env::current_dir and then pushing src/lit/.)
This is unfortunate, and there's no real good reason for it beyond laziness on my part. At the very least we could take inspiration from the lalrpop crate, which seems to provide both an easy fn process_root and then a more intricate entry point where one supplies a configuration.
Currently Tango assumes that all
.rs
and.md
files are underneathsrc/
in the current working directory.This means that if you want Tango to run on only a subset of your files, you need to go through machinations like this (taken from https://github.com/pnkfelix/mon-artiste/commit/e7896eb4ff650089df5526f12e61745783752f50):
(where
lit
is set up by readingenv::current_dir
and then pushingsrc/lit/
.)This is unfortunate, and there's no real good reason for it beyond laziness on my part. At the very least we could take inspiration from the lalrpop crate, which seems to provide both an easy
fn process_root
and then a more intricate entry point where one supplies a configuration.