docsets.rust-std: patch so that std:: docs show up properly in std::, not rust_std::std
This commit is contained in:
2
pkgs/by-name/docsets/rust-std/Cargo.lock
generated
2
pkgs/by-name/docsets/rust-std/Cargo.lock
generated
@@ -3,5 +3,5 @@
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "rust-std"
|
||||
name = "std"
|
||||
version = "0.1.0"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "rust-std"
|
||||
name = "std"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
|
@@ -3,9 +3,15 @@
|
||||
rustPlatform,
|
||||
}:
|
||||
rustPlatform.buildRustPackage {
|
||||
name = "rust-std";
|
||||
pname = "std";
|
||||
inherit (rustPlatform.rust.rustc) version;
|
||||
src = ./.;
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Cargo.toml \
|
||||
--replace-fail 'version = "0.1.0"' 'version = "'"$version"'"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ docsets.cargoDocsetHook ];
|
||||
}
|
||||
|
@@ -6,4 +6,4 @@
|
||||
// *sigh*
|
||||
|
||||
#[doc(inline)]
|
||||
pub use std;
|
||||
pub use std::*;
|
||||
|
Reference in New Issue
Block a user