Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
60c49bcb
R
Rust
项目概览
int
/
Rust
接近 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
60c49bcb
编写于
4月 09, 2019
作者:
J
John Kåre Alsaker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove some dummy dependencies
上级
345ba505
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
34 deletion
+3
-34
src/librustc/Cargo.toml
src/librustc/Cargo.toml
+0
-30
src/librustc/lib.rs
src/librustc/lib.rs
+2
-4
src/librustc_codegen_llvm/Cargo.toml
src/librustc_codegen_llvm/Cargo.toml
+1
-0
未找到文件。
src/librustc/Cargo.toml
浏览文件 @
60c49bcb
...
...
@@ -37,33 +37,3 @@ chalk-engine = { version = "0.9.0", default-features=false }
rustc_fs_util
=
{
path
=
"../librustc_fs_util"
}
smallvec
=
{
version
=
"0.6.7"
,
features
=
[
"union"
,
"may_dangle"
]
}
measureme
=
"0.3"
# Note that these dependencies are a lie, they're just here to get linkage to
# work.
#
# We're creating a bunch of dylibs for the compiler but we're also compiling a
# bunch of crates.io crates. Everything in the compiler is compiled as an
# rlib/dylib pair but all crates.io crates tend to just be rlibs. This means
# we've got a problem for dependency graphs that look like:
#
# foo - rustc_codegen_llvm
# / \
# rustc ---- rustc_driver
# \ /
# foo - rustc_metadata
#
# Here the crate `foo` is linked into the `rustc_codegen_llvm` and the
# `rustc_metadata` dylibs, meaning we've got duplicate copies! When we then
# go to link `rustc_driver` the compiler notices this and gives us a compiler
# error.
#
# To work around this problem we just add these crates.io dependencies to the
# `rustc` crate which is a shared dependency above. That way the crate `foo`
# shows up in the dylib for the `rustc` crate, deduplicating it and allowing
# crates like `rustc_codegen_llvm` to use `foo` *through* the `rustc` crate.
#
# tl;dr; this is not needed to get `rustc` to compile, but if you remove it then
# later crate stop compiling. If you can remove this and everything
# compiles, then please feel free to do so!
flate2
=
"1.0"
tempfile
=
"3.0"
src/librustc/lib.rs
浏览文件 @
60c49bcb
...
...
@@ -89,10 +89,8 @@
#[macro_use]
extern
crate
smallvec
;
// Note that librustc doesn't actually depend on these crates, see the note in
// `Cargo.toml` for this crate about why these are here.
#[allow(unused_extern_crates)]
extern
crate
flate2
;
// Use the test crate here so we depend on getopts through it. This allow tools to link to both
// librustc_driver and libtest.
#[allow(unused_extern_crates)]
extern
crate
test
;
...
...
src/librustc_codegen_llvm/Cargo.toml
浏览文件 @
60c49bcb
...
...
@@ -13,6 +13,7 @@ test = false
[dependencies]
cc
=
"1.0.1"
# Used to locate MSVC
num_cpus
=
"1.0"
tempfile
=
"3.0"
rustc-demangle
=
"0.1.15"
rustc_llvm
=
{
path
=
"../librustc_llvm"
}
memmap
=
"0.6"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录