Skip to content

Return Rust structs from libmoonwave#181

Open
daimond113 wants to merge 2 commits intoevaera:masterfrom
daimond113:feat/separate-extractor-cli
Open

Return Rust structs from libmoonwave#181
daimond113 wants to merge 2 commits intoevaera:masterfrom
daimond113:feat/separate-extractor-cli

Conversation

@daimond113
Copy link
Copy Markdown

Previously, libmoonwave contained the CLI and was hardly useful since it printed to the console instead of returning Rust structs. This PR separates the CLI's dependencies into a feature and returns Rust structs from the parse functions.

Because of Rust's ownership rules, I had to separate generate_docs_from_path into parse_source_files_at_path and generate_docs_from_sources. Additionally, I made the find_files function public so that its error can be handled separately.

@YetAnotherClown
Copy link
Copy Markdown
Collaborator

Could we, in addition to the new api in the pull request, preserve the generate_docs_from_path api to maintain backwards compatibility? I do not believe there are any consumers of said api, but I would like to maintain backwards compatibility regardless.

@daimond113
Copy link
Copy Markdown
Author

I'm not opposed to it, but this PR already brings in breaking changes which makes me think re-adding that API might not be necessary. I will re-add it if it's still wanted.

@YetAnotherClown YetAnotherClown added enhancement New feature or request extractor labels Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request extractor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants