Skip to content

Conversation

redsun82
Copy link
Contributor

@redsun82 redsun82 commented Sep 11, 2024

The .cargo/config.toml based workaround wasn't really working, as while cargo build|check was reading that, cargo metadata wasn't, ending up in a completely broken IDE experience.

For the moment, we just use a unified workspace Cargo.toml for all extractors using the shared tree-sitter code, which has the downside of making bazel pull in dependencies for all of them, and not being able to do separate sparse checkouts for them. We should investigate and revisit this in the future.

The `.cargo/config.toml` override based workaround wasn't really
working, as while `cargo build|check` was reading that, `cargo metadata`
wasn't, ending up in a completely broken IDE experience.

For the moment, we just use a unified workspace `Cargo.toml` for all
extractors using the shared tree-sitter code, which has the downside of
making bazel pull in dependencies for all of them, and not being able to
do sparse checkouts for them. We should investigate and rivist this in
the future.
@redsun82
Copy link
Contributor Author

cc @criemen you might want to take a look at this once you're back from vacation.

@redsun82 redsun82 closed this Sep 11, 2024
@redsun82 redsun82 reopened this Sep 11, 2024
@redsun82 redsun82 merged commit f464759 into rust-experiment Sep 11, 2024
20 of 21 checks passed
@redsun82 redsun82 deleted the redsun82/rust-experiment branch September 11, 2024 07:15
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.

1 participant