< 返回版块

awsa2ron 发表于 2021-12-21 09:15

我自己写了一个很简单的库,在Cargo publish的时候发现会自动compile以下crates。why?

 Compiling libc v0.2.112
   Compiling memchr v2.4.1
   Compiling glob v0.3.0
   Compiling cfg-if v1.0.0
   Compiling version_check v0.9.3
   Compiling log v0.4.14
   Compiling proc-macro2 v1.0.34
   Compiling regex-syntax v0.6.25
   Compiling unicode-xid v0.2.2
   Compiling minimal-lexical v0.2.1
   Compiling unicode-width v0.1.9
   Compiling strsim v0.8.0
   Compiling termcolor v1.1.2
   Compiling bindgen v0.59.2
   Compiling bitflags v1.3.2
   Compiling vec_map v0.8.2
   Compiling either v1.6.1
   Compiling ansi_term v0.12.1
   Compiling humantime v2.1.0
   Compiling lazycell v1.3.0
   Compiling shlex v1.1.0
   Compiling lazy_static v1.4.0
   Compiling rustc-hash v1.1.0
   Compiling peeking_take_while v0.1.2
   Compiling libloading v0.7.2
   Compiling textwrap v0.11.0
   Compiling nom v7.1.0
   Compiling clang-sys v1.3.0
   Compiling quote v1.0.10
   Compiling aho-corasick v0.7.18
   Compiling atty v0.2.14
   Compiling which v4.2.2
   Compiling clap v2.34.0
   Compiling regex v1.5.4
   Compiling cexpr v0.6.0
   Compiling env_logger v0.9.0

评论区

写评论
苦瓜小仔 2021-12-21 13:06

reference: publishing

Packaging a crate 3. Extract the .crate file into a temporary directory and verify that it compiles.

1 共 1 条评论, 1 页