Skip to content

Commit

Permalink
📃 docs: 更新 GIT_FETCH_WITH_CLI 的文档
Browse files Browse the repository at this point in the history
  • Loading branch information
wtklbm committed Apr 9, 2024
1 parent 10e818c commit 1d14d69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ pub const NET: &str = "net";
/// git-fetch-with-cli = true
/// ```
/// 保存之后就解决了 `cargo` 无法连接 `github.com` 的错误
/// @note 可以使用环境变量 `export CARGO_NET_GIT_FETCH_WITH_CLI="true"` 来进行覆盖
/// @reference https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
pub const GIT_FETCH_WITH_CLI: &str = "git-fetch-with-cli";

/// `${CARGO_HOME}/.cargo/config` 文件中的 `[source.crates-io]` 属性
Expand Down

0 comments on commit 1d14d69

Please sign in to comment.