Skip to content

Commit 6419362

Browse files
committed
rustc: Remove dylib crate type from most rustc crates
Now that procedural macros no longer link transitively to libsyntax, this shouldn't be needed any more! This commit is an experiment in removing all dynamic libraries from rustc except for librustc_driver itself. Let's see how far we can get with that!
1 parent 6f839fb commit 6419362

File tree

29 files changed

+16
-34
lines changed

29 files changed

+16
-34
lines changed

src/libarena/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ version = "0.0.0"
66
[lib]
77
name = "arena"
88
path = "lib.rs"
9-
crate-type = ["dylib"]
109

1110
[dependencies]
12-
rustc_data_structures = { path = "../librustc_data_structures" }
11+
rustc_data_structures = { path = "../librustc_data_structures" }

src/libfmt_macros/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ version = "0.0.0"
66
[lib]
77
name = "fmt_macros"
88
path = "lib.rs"
9-
crate-type = ["dylib"]

src/libgraphviz/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ version = "0.0.0"
66
[lib]
77
name = "graphviz"
88
path = "lib.rs"
9-
crate-type = ["dylib"]

src/librustc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = "0.0.0"
66
[lib]
77
name = "rustc"
88
path = "lib.rs"
9-
crate-type = ["dylib"]
9+
doctest = false
1010

1111
[dependencies]
1212
arena = { path = "../libarena" }

src/librustc_allocator/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ version = "0.0.0"
55

66
[lib]
77
path = "lib.rs"
8-
crate-type = ["dylib"]
98
test = false
109

1110
[dependencies]

src/librustc_borrowck/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ version = "0.0.0"
66
[lib]
77
name = "rustc_borrowck"
88
path = "lib.rs"
9-
crate-type = ["dylib"]
109
test = false
10+
doctest = false
1111

1212
[dependencies]
1313
log = "0.4"
@@ -17,4 +17,4 @@ graphviz = { path = "../libgraphviz" }
1717
rustc = { path = "../librustc" }
1818
rustc_mir = { path = "../librustc_mir" }
1919
rustc_errors = { path = "../librustc_errors" }
20-
rustc_data_structures = { path = "../librustc_data_structures" }
20+
rustc_data_structures = { path = "../librustc_data_structures" }

src/librustc_codegen_ssa/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ version = "0.0.0"
66
[lib]
77
name = "rustc_codegen_ssa"
88
path = "lib.rs"
9-
crate-type = ["dylib"]
109
test = false
1110

1211
[dependencies]

src/librustc_codegen_utils/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ version = "0.0.0"
66
[lib]
77
name = "rustc_codegen_utils"
88
path = "lib.rs"
9-
crate-type = ["dylib"]
109
test = false
1110

1211
[dependencies]

src/librustc_cratesio_shim/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ authors = ["The Rust Project Developers"]
1616
name = "rustc_cratesio_shim"
1717
version = "0.0.0"
1818

19-
[lib]
20-
crate-type = ["dylib"]
21-
2219
[dependencies]
2320
bitflags = "1.0"
2421
log = "0.4"

src/librustc_data_structures/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = "0.0.0"
66
[lib]
77
name = "rustc_data_structures"
88
path = "lib.rs"
9-
crate-type = ["dylib"]
9+
doctest = false
1010

1111
[dependencies]
1212
ena = "0.11"

0 commit comments

Comments
 (0)