-
vector is such a huge project that everytime I change some lines of code, I have to wait for rust-analyzer running |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @caibirdme ! You can see some tips here for speeding up compilation: https://github.com/vectordotdev/vector/blob/master/docs/DEVELOPING.md#tips-and-tricks . The most effective is using feature flags to only build the part of Vector you are actively developing (e.g. We are hoping to make some improvements here in the future to make it easier to iterate on sub-components of Vector without needing to do a full build. |
Beta Was this translation helpful? Give feedback.
Hi @caibirdme !
You can see some tips here for speeding up compilation: https://github.com/vectordotdev/vector/blob/master/docs/DEVELOPING.md#tips-and-tricks . The most effective is using feature flags to only build the part of Vector you are actively developing (e.g.
cargo check (or build or test) --no-default-features --features "sinks-elasticsearch"
if you are just modifying the Elasticsearch sink). You can see the full list of feature flags inCargo.toml
.We are hoping to make some improvements here in the future to make it easier to iterate on sub-components of Vector without needing to do a full build.