-
Notifications
You must be signed in to change notification settings - Fork 144
feat: Adding support for no_std environments for env_filter#378
feat: Adding support for no_std environments for env_filter #378WolverinDEV wants to merge 2 commits intorust-cli:main from
no_std environments for env_filter #378Conversation
Signed-off-by: WolverinDEV <git@did.science>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the lack of std require a higher MSRV
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you split this out into a separate commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you group these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're changing grouping, could you do
use {core,alloc,std}
use third-party
use crate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this belongs in the previous comit, could you move it there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactor(filter): Add support for no_std environments
Mind fixing your commit type?
A refactor, by definition, has no user facing changes while this does. I would use feat
coveralls
commented
Aug 22, 2025
Pull Request Test Coverage Report for Build 17143312963Details
💛 - Coveralls |
Using
env_loggerin ano_stdenvironment may not seem useful at first. However, theenv_filtercrate is very convenient for defining complex filters that can then be implemented by a customno_std-compatible logger.This approach leverages the convenience developers are already familiar with from
env_logger, while enabling the same flexibility inno_stdcontexts with other logging backends.