Skip to content

Commit d08cbb8

Browse files
1 parent 9b1d5b0 commit d08cbb8

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
@@ -40,3 +40,9 @@
4040
!/Target/x86_64-pc-windows-msvc/bundle/appimage/*.AppImage
4141

4242
!/Target/x86_64-pc-windows-msvc/*.exe
43+
44+
Documentation/Rust/debug
45+
Documentation/Rust/release
46+
Documentation/Rust/.rustc_info.json
47+
Documentation/Rust/.rustdoc_fingerprint.json
48+
Documentation/Rust/CACHEDIR.TAG

Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,13 @@ name = "Document"
3232
publish = false
3333
repository = "https://github.com/CodeEditorLand/Document"
3434
version = "0.0.1"
35+
36+
[package.metadata.docs.rs]
37+
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
38+
all-features = true
39+
default-target = "x86_64-unknown-linux-gnu"
40+
targets = [
41+
"x86_64-unknown-linux-gnu",
42+
"x86_64-apple-darwin",
43+
"aarch64-apple-darwin",
44+
]

0 commit comments

Comments
 (0)