Skip to content

Conversation

@rubberduck203
Copy link
Collaborator

@rubberduck203 rubberduck203 commented Jan 21, 2026

We've had some conversation of how it would be nice to reuse parts of scope as a library.
Particularly, the analyze/fix functionality would be a high value item to extract into a crate that could be published and imported into other rust programs.

In it's current state, there really is no intentional public API and a fair amount of the cli is mixed into various modules (both as feature/cli.rs modules and peppered throughout the code).

This document attempts to capture the current state, identify things that may cause problems for us when attempting to solidify & publish a public API, and establish a potential path forward/goal state.

I'm not sure if we want to merge it or not, but a PR does provide a convenient way to leave comments/thoughts.

I obviously used an LLM to assist me in creating the document, but I reviewed and edited it myself. It's pretty accurate and the approach it lays out for refactoring is pretty solid IMO.

@rubberduck203 rubberduck203 changed the title Cmac/architecture Architecture/Exposing a library crate Jan 21, 2026
@kejadlen
Copy link
Collaborator

I think this is a reasonable approach if we do want to reuse some of the functionality, although perhaps might make more sense in a GitHub issue for now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants