How to install third-party libraries offline

How to install third-party libraries offline?I want use 'mdbook' library.

Take a copy of the library, then use cargo vendor to download all of its transitive dependencies. For example, this session:

$ git clone

$ cargo vendor
To use vendored sources, add this to your .cargo/config.toml for this project:

replace-with = "vendored-sources"

directory = "vendor"

You can then do whatever you want with mdBook, or its dependencies, without an internet connection.



This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.