chiark / gitweb /
Attempt to build std docs locally
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Dec 2020 20:49:41 +0000 (20:49 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Dec 2020 20:49:41 +0000 (20:49 +0000)
But it doesn't work, producing some broken links eg
  file://///home/rustcargo/Rustup/Game/server/target/doc/std_doc/std/str/index.html
link "the str primitive type" to
  file://///home/rustcargo/Rustup/Game/server/target/doc/std_doc/std/primitive.str.html

Cargo.lock.example
Cargo.toml
src/std-doc/Cargo.toml [new file with mode: 0644]
src/std-doc/lib.rs [new file with mode: 0644]

index 8d9012f45333e157844c419cc4c58a6727eabcab..30b65721c7eb5c6499dd211fd321d8b179f95c6e 100644 (file)
@@ -2245,6 +2245,10 @@ version = "0.4.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "3015a7d0a5fd5105c91c3710d42f9ccf0abfb287d62206484dcc67f9569a6483"
 
+[[package]]
+name = "std-doc"
+version = "0.0.1"
+
 [[package]]
 name = "strsim"
 version = "0.9.3"
index ae7bfeda499dc1ae2009a213345911d7ff4b410e..4a2bcafced07c878d453ed02ce83c6662102df5e 100644 (file)
@@ -11,7 +11,7 @@ version = "0.0.1"
 edition = "2018"
 
 [workspace]
-members = ["wasm", "wdriver"]
+members = ["wasm", "wdriver", "src/std-doc"]
 
 [dependencies]
 
diff --git a/src/std-doc/Cargo.toml b/src/std-doc/Cargo.toml
new file mode 100644 (file)
index 0000000..2be8399
--- /dev/null
@@ -0,0 +1,12 @@
+
+[package]
+name = "std-doc"
+authors = ["Rust authors"]
+license = "Same as Rust"
+
+version = "0.0.1"
+edition = "2018"
+
+[lib]
+name = "std_doc"
+path = "lib.rs"
diff --git a/src/std-doc/lib.rs b/src/std-doc/lib.rs
new file mode 100644 (file)
index 0000000..330f863
--- /dev/null
@@ -0,0 +1,2 @@
+#[doc(inline)]
+pub use std;