Skip to content

Commit ecceeda

Browse files
committed
Some tweaks to docs
1 parent 8bf791d commit ecceeda

File tree

12 files changed

+12
-15
lines changed

12 files changed

+12
-15
lines changed

crates/rustc_codegen_spirv-types/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[package]
22
name = "rustc_codegen_spirv-types"
33
description = "SPIR-V backend types shared between rustc_codegen_spirv and spirv-builder"
4-
documentation = "https://embarkstudios.github.io/rust-gpu/api/rustc_codegen_spirv_types/index.html"
54
version.workspace = true
65
authors.workspace = true
76
edition.workspace = true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# `rustc_codegen_spirv-types`
22

3-
SPIR-V backend types shared between `rustc_codegen_spirv` and `spirv-builder`. Please refer to [`spirv-builder`](https://crates.io/crates/spirv-builder) for more information.
3+
SPIR-V backend types shared between `rustc_codegen_spirv` and `spirv-builder`. Please refer to [`spirv-builder`](https://docs.rs/spirv-builder/) for more information.

crates/rustc_codegen_spirv-types/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Types used by both `rustc_codegen_spirv` and `spirv-builder`.
1+
#![doc = include_str!("../README.md")]
22

33
pub use rspirv::spirv::Capability;
44

crates/rustc_codegen_spirv/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `rustc_codegen_spirv`
22

3-
Compiler backend for the `SPIR-V` target architecture. This crate is not intended to be used directly. Please refer to [`spirv-builder`](https://crates.io/crates/spirv-builder) for more information.
3+
Compiler backend for the `SPIR-V` target architecture. This crate is not intended to be used directly. Please refer to [`spirv-builder`](https://docs.rs/spirv-builder/) for more information.
44

55
## Documentation
66

crates/spirv-builder/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- markdownlint-disable-file MD033 -->
33
# `spirv-builder`
44

5-
![Rust version](https://img.shields.io/badge/rust-1.66.0_nightly--2022--10--29-purple.svg)
5+
![Rust version](https://img.shields.io/badge/rust-nightly--2022--10--29-purple.svg)
66

77
This crate gives you `SpirvBuilder`, a tool to build shaders using [rust-gpu][rustgpu].
88

@@ -36,7 +36,7 @@ Because of its nature, `rustc_codegen_spirv`, and therefore `spirv-builder` by e
3636
Toolchains for previous versions of `spirv-builder`:
3737

3838
|Version|Toolchain|
39-
|-|-|
39+
|-:|-|
4040
|`0.4.0`|`nightly-2022-10-29`|
4141
|`0.4.0-alpha.16` - `0.4.0-alpha.17`|`nightly-2022-10-01`|
4242
|`0.4.0-alpha.15`|`nightly-2022-08-29`|

crates/spirv-builder/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
// END - Embark standard lints v0.4
7070
// crate-specific exceptions:
7171
// #![allow()]
72+
#![doc = include_str!("../README.md")]
7273

7374
mod depfile;
7475
#[cfg(feature = "watch")]

crates/spirv-std/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This crate gives a `rust-gpu` shader access to the required `#![spirv(..)]` attr
66

77
## 🚨 BREAKING 🚨
88

9-
As of `0.4.0-alpha.16`, your shaders will require a different preamble. See [this doc][migration] for more information.
9+
As of `0.4.0-alpha.16`, your shaders will require a different preamble. See [this migration guide][migration] for more information.
1010

1111
## Example
1212

crates/spirv-std/macros/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# `spirv-std-macros`
22

3-
This crate implements macros required for `spirv-std`. Most importantly, it implements the `#![spirv(..)]` attribute macro required for use in shader code. Please refer to [`spirv-std`](https://crates.io/crates/spirv-std) for more information.
3+
This crate implements macros required for `spirv-std`. Most importantly, it implements the `#![spirv(..)]` attribute macro required for use in shader code. Please refer to [`spirv-std`](https://docs.rs/spirv-std/) for more information.

crates/spirv-std/macros/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
// END - Embark standard lints v0.4
7070
// crate-specific exceptions:
7171
// #![allow()]
72+
#![doc = include_str!("../README.md")]
7273

7374
mod image;
7475

crates/spirv-std/shared/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# `spirv-std-types`
22

3-
Small shared crate, to share definitions between [`spirv-std`](https://crates.io/crates/spirv-std) and [`spirv-std-macros`](https://crates.io/crates/spirv-std-macros). Please refer to [`spirv-std`](https://crates.io/crates/spirv-std) for more information.
3+
Small shared crate, to share definitions between [`spirv-std`](https://docs.rs/spirv-std/) and [`spirv-std-macros`](https://docs.rs/spirv-std-macros/). Please refer to [`spirv-std`](https://docs.rs/spirv-std/) for more information.

0 commit comments

Comments
 (0)