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

move crate_target_dirs from RustInfo to CrateInfo #941

Merged

Conversation

xxchan
Copy link
Contributor

@xxchan xxchan commented Sep 9, 2023

Because it uses cargo metadata, which can be time consuming on first invoke. Otherwise RustInfo is fast to load, and CrateInfo already uses cargo metadata.

And it also sounds more reasonable.

Because it uses `cargo metadata`, which can be time consuming on first invoke. Otherwise RustInfo is fast to load, and CrateInfo already uses `cargo metadata`.
@codecov
Copy link

codecov bot commented Sep 9, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (0f4ef77) 92.88% compared to head (731149f) 92.88%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #941   +/-   ##
=======================================
  Coverage   92.88%   92.88%           
=======================================
  Files         118      118           
  Lines       23721    23721           
=======================================
  Hits        22034    22034           
  Misses       1687     1687           
Files Changed Coverage Δ
src/lib/environment/mod.rs 93.57% <100.00%> (ø)
src/lib/environment/mod_test.rs 95.67% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sagiegurari
Copy link
Owner

@xxchan thanks for this.
question: if i'm not wrong, both rust and crate info are invoked on startup, so what is the gain (sorry, didn't check too much)?

@sagiegurari sagiegurari changed the base branch from master to 0.37.1 September 16, 2023 08:33
@xxchan
Copy link
Contributor Author

xxchan commented Sep 16, 2023

Because

skip_rust_env_info = false
skip_crate_env_info = true

https://github.com/risingwavelabs/risingwave/blob/8ef74ad37194848ab7c75c7d39d503ad1d64025f/Makefile.toml#L81-L82

😄

@sagiegurari sagiegurari merged commit 5373dce into sagiegurari:0.37.1 Sep 17, 2023
14 checks passed
@sagiegurari
Copy link
Owner

thanks @xxchan merged

@sagiegurari sagiegurari added this to the 0.37.1 milestone Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants