Skip to content

Commit 1d5bd4a

Browse files
committed
tokio unstable flag
1 parent f0508c8 commit 1d5bd4a

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.cargo/config.toml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[env]
2+
# set coin name for diem dependencies
3+
RUST_DIEM_COIN_MODULE="libra_coin"
4+
RUST_DIEM_COIN_NAME="LibraCoin"
5+
6+
[target.'cfg(target_os = "linux")']
7+
# Dramatically increases the link performance for the eventbus
8+
rustflags = ["-C", "link-arg=-fuse-ld=lld"] # sudo apt -y install lld
9+
# Uncomment following lines for faster link times (see brew cmd to install zld)
10+
# [target.'cfg(target_os = "macos")']
11+
# rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld"] # brew install michaeleisel/zld/zld
12+
13+
[build]
14+
rustflags = ["--cfg", "tokio_unstable", "-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes"]
15+
16+
# TODO(grao): Figure out whether we should enable other cpu features, and whether we should use a different way to configure them rather than list every single one here.
17+
[target.x86_64-unknown-linux-gnu]
18+
rustflags = [
19+
"--cfg",
20+
"tokio_unstable",
21+
"-C",
22+
"link-arg=-fuse-ld=lld",
23+
"-C",
24+
"force-frame-pointers=yes",
25+
"-C",
26+
"force-unwind-tables=yes",
27+
"-C",
28+
"target-feature=+sse4.2",
29+
]
30+
31+
# 64 bit MSVC
32+
[target.x86_64-pc-windows-msvc]
33+
rustflags = [
34+
"--cfg",
35+
"tokio_unstable",
36+
"-C",
37+
"force-frame-pointers=yes",
38+
"-C",
39+
"force-unwind-tables=yes",
40+
"-C",
41+
"link-arg=/STACK:8000000", # Set stack to 8 MB
42+
]
43+
44+
[target.aarch64-apple-darwin]
45+
rustflags = [
46+
"-C",
47+
"link-arg=-L/opt/homebrew/opt/gmp",
48+
]

.cargo/rustfmt.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
reorder_imports = true
2+
imports_granularity = "Crate"

0 commit comments

Comments
 (0)