main function, which is the command-line interface
A transpile_directory function, which is used by the command line interface. This allows us to transpile entire directories
A mamba_to_python function, which takes a vector of Strings representing mamba source code and returns a vector of Strings representing Python source code. This function optionally takes directories as an argument to improve error messages.
Internals may still be accessed through the library (lib.rs), but the above form part of the public interface.
Relevant issues
The interface was rather messy.
Summary
The following are now public:
transpile_directory
function, which is used by the command line interface. This allows us to transpile entire directoriesmamba_to_python
function, which takes a vector of Strings representing mamba source code and returns a vector of Strings representing Python source code. This function optionally takes directories as an argument to improve error messages.Internals may still be accessed through the library (
lib.rs
), but the above form part of the public interface.