-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Chalk upgrade #5319
Chalk upgrade #5319
Conversation
Finally!
|
crates/ra_hir_ty/Cargo.toml
Outdated
|
||
[dev-dependencies] | ||
insta = "0.16.0" | ||
expect = { path = "../expect" } | ||
|
||
tracing = "0.1" | ||
tracing-subscriber = { version = "0.2" } |
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.
You might be able to disable all default features and only enable the EnvFilter + the Registry to cut down on compile times, as you don't really need the formatters.
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.
I wonder if we can import only a single trait, like how we need only env_logger for logging. The problem with many crates is that you need to update several major versions sometimes.
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.
I've been thinking about that—one thing that I can do is re-export the important stuff from tracing-subscriber
via tracing-tree
, which could reduce the amount of imports to just tracing and tracing-tree.
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.
I set the features, but I'm not sure it made any difference 🤔
crates/ra_hir_ty/Cargo.toml
Outdated
|
||
[dev-dependencies] | ||
insta = "0.16.0" | ||
expect = { path = "../expect" } | ||
|
||
tracing = "0.1" | ||
tracing-subscriber = { version = "0.2" } |
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.
I wonder if we can import only a single trait, like how we need only env_logger for logging. The problem with many crates is that you need to update several major versions sometimes.
I've released tracing-tree 0.1.3 that enables writing to arbitrary destinations, including |
The Chalk publish failed to publish chalk-recursive, so I think we'll need to merge this with the git dependency if we don't want to wait a week... |
Actually apparently we might get a release... |
They exist in Chalk now.
bors r+ |
Unsize
impls, remove oursFixes #2534.
Fixes #5057.
Fixes #4374.
Fixes #4281.