Skip to content

Conversation

@Rahix
Copy link
Owner

@Rahix Rahix commented May 4, 2025

With our biggest user, avr-device switching to using this crate as a library rather than a CLI tool, it's time to somewhat pivot our dependency management towards this usecase. There is no need to pull in all the CLI frontend dependencies for library users.

Introduce a new cli feature for the CLI interface. This feature is enabled by default so the tool can still be built without issue as needed. Library-only users like avr-device can disable the cli feature to reduce the number of unnecessary dependencies.

Rahix added 3 commits April 30, 2025 23:35
As this function is not strictly CLI related, move it into a more
fitting place.
With our biggest user, `avr-device` switching to using this crate as a
library rather than a CLI tool, it's time to somewhat pivot our
dependency management towards this usecase.  There is no need to pull in
all the CLI frontend dependencies for library users.

Introduce a new `cli` feature for the CLI interface.  This feature is
enabled by default so the tool can still be built without issue as
needed.  Library-only users like `avr-device` can disable the `cli`
feature to reduce the number of unnecessary dependencies.
For the regression tests, drop the `cli` feature to ensure such a build
works, too.  For covering the CLI, add a new job which builds and runs
the CLI tool.
@Rahix Rahix merged commit c6aa29b into main May 4, 2025
3 checks passed
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