tldr/pages.zh/common/cargo-fetch.md

13 lines
291 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# cargo fetch
> 从网络获取包的依赖项。
> 更多信息:<https://doc.rust-lang.org/cargo/commands/cargo-fetch.html>.
- 获取 `Cargo.lock` 中指定的依赖项 (对所有目标)
`cargo fetch`
- 为指定目标获取依赖项:
`cargo fetch --target {{目标三元组}}`