Skip to content

Commit ee1ff6a

Browse files
1 parent 9e9c297 commit ee1ff6a

3 files changed

Lines changed: 42 additions & 0 deletions

File tree

.cargo/config.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,39 @@
11
[build]
22
target-dir = "Target"
3+
rustdocflags = [
4+
"-Zunstable-options",
5+
"--enable-index-page",
6+
]
7+
8+
[net]
9+
git-fetch-with-cli = true
310

411
[cargo-new]
512
vcs = "git"
613

14+
[unstable]
15+
rustdoc-scrape-examples = true
16+
17+
[profile.dev]
18+
incremental = true
19+
split-debuginfo = "unpacked"
20+
debug = 0
21+
strip = "debuginfo"
22+
panic = "abort"
23+
24+
[profile.dev.package."*"]
25+
opt-level = 3
26+
727
[profile.release]
828
opt-level = 3
929
codegen-units = 1
1030
debug = false
1131
lto = true
1232
panic = "abort"
1333
strip = true
34+
35+
[target.aarch64-apple-darwin]
36+
rustflags = ["-Zshare-generics=y"]
37+
38+
[target.x86_64-apple-darwin]
39+
rustflags = ["-Zshare-generics=y"]

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@
77
!/Target/release/*.exe
88
!/Target/release/BinaryRest
99
!/Target/release/Rest
10+
11+
Documentation/Rust/debug
12+
Documentation/Rust/release
13+
Documentation/Rust/.rustc_info.json
14+
Documentation/Rust/.rustdoc_fingerprint.json
15+
Documentation/Rust/CACHEDIR.TAG

Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,13 @@ license-file = "LICENSE"
6767
name = "Rest"
6868
repository = "https://github.com/BinaryRest/Rest.git"
6969
version = "0.0.1"
70+
71+
[package.metadata.docs.rs]
72+
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
73+
all-features = true
74+
default-target = "x86_64-unknown-linux-gnu"
75+
targets = [
76+
"x86_64-unknown-linux-gnu",
77+
"x86_64-apple-darwin",
78+
"aarch64-apple-darwin",
79+
]

0 commit comments

Comments
 (0)