6 ms·
I mean... rust modules aren't typically in your CWD, no? they're not in some node_modules that you can grep, but in a cargo folder with /all of the libraries yo
by pluto_modadic 2y ago
I mean... rust modules aren't typically in your CWD, no? they're not in some node_modules that you can grep, but in a cargo folder with /all of the libraries you ever used/, not just the ones you have for this one project.
- gpm 2y agoPutting them all in the project root takes just a single `cargo vendor` command. But I would assume that for mozilla their entire CSS subsystem is pulled in as a git (hg?) submodule or something anyways.
- est31 2y agonot sure how the CSS subsystem is included (I remember it is shared with Servo?), but in general all of the Rust dependencies in mozilla-central is vendored, so nothing is in your ~/.cargo directory.
- est31 2y agoIf you run cargo vendor, they end up in a neat directory.
- eru 2y agoFor what it's worth, eg vscode can jump to definition even when your code is in a different crate that's not in your repository.