Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove colored CLI output from wasmer-runtime-core lib #792

Merged
merged 4 commits into from
Sep 19, 2019

Conversation

repi
Copy link
Contributor

@repi repi commented Sep 15, 2019

When the colored output was originally added in #489 and there was a discussion then about that it should ideally be in a higher-level crate rather than in the runtime-core library crate.

I agree with that, users of the library shouldn't be required to bring in the colored crate dependency and ideally also not have stdout/stderr output either, that should be controlled by the application that uses wasmer-runtime-core, not the library.

Disabling stdout/stderr output would be more intrusive but I wanted to at least not have colored output and another crate dependency so this change removes the colored output and the colored crate.

colored also had quite a few dependencies and, while well used, is not super actively maintained. So this change also removes 6 transitive dependencies of the colored crate which is great.

This could potentially be a feature flag instead also, but would be a bit messier.

When the colored output was originally added in wasmerio#489 and there was a discussion then about that it should ideally be in a higher-level crate rather than in the runtime-core library crate.

I agree with that, users of the library shouldn't be required to bring in the colored crate dependency and ideally also not have stdout/stderr output either, that should be controlled by the application that uses wasmer-runtime-core, not the library.

Disabling stdout/stderr output would be more intrusive but I wanted to at least not have colored output and another crate dependency so this change removes the colored output and the "colored" crate.
Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good to go. In the future, we might want to revert the changes and use colored depending on a feature.

@syrusakbary
Copy link
Member

@repi if you can update the cargo.lock it would be awesome, so we can merge!

@repi
Copy link
Contributor Author

repi commented Sep 19, 2019

Great, there now Cargo.lock config has been resolved

@syrusakbary
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Sep 19, 2019
792: Remove colored CLI output from wasmer-runtime-core lib r=syrusakbary a=repi

When the colored output was originally added in #489 and there was a discussion then about that it should ideally be in a higher-level crate rather than in the runtime-core library crate.

I agree with that, users of the library shouldn't be required to bring in the `colored` crate dependency and ideally also not have stdout/stderr output either, that should be controlled by the application that uses wasmer-runtime-core, not the library.

Disabling stdout/stderr output would be more intrusive but I wanted to at least not have colored output and another crate dependency so this change removes the colored output and the `colored` crate.

`colored` also had quite a few dependencies and, while well used, is not super actively maintained. So this change also removes 6 transitive dependencies of the `colored` crate which is great.

This could potentially be a feature flag instead also, but would be a bit messier.

Co-authored-by: Johan Andersson <repi@repi.se>
@bors
Copy link
Contributor

bors bot commented Sep 19, 2019

Build succeeded

  • wasmerio.wasmer

@bors bors bot merged commit 8d0edc6 into wasmerio:master Sep 19, 2019
@repi repi deleted the remove-colored branch September 19, 2019 15:19
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