I am writing a Cargo subcommand for counting lines of all the dependencies of your project. I am using tokei as a library.
According to the documentation, languages.get_statistics() will treat paths as globs. But I only ever need to pass literals to tokei, and treating them as globs will lead to incorrect results. So I need to disable globbing for my tool to work correctly, but the Config struct does not seem to allow any control over globbing (as of version 12.1.2).
I am writing a Cargo subcommand for counting lines of all the dependencies of your project. I am using tokei as a library.
According to the documentation,
languages.get_statistics()
will treat paths as globs. But I only ever need to pass literals totokei
, and treating them as globs will lead to incorrect results. So I need to disable globbing for my tool to work correctly, but theConfig
struct does not seem to allow any control over globbing (as of version 12.1.2).