Skip to content

Commit aa239d7

Browse files
Merge pull request #4 from danielhenrymantilla/nightly/fix-doc-include
Use `doc = include_str!` instead of `doc(include`
2 parents a24448d + 49b29a3 commit aa239d7

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

.github/workflows/CI.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
rust-toolchains:
5555
- 1.43.0
5656
- stable
57+
- nightly
5758
steps:
5859
- name: Install Rust toolchain
5960
uses: actions-rs/toolchain@v1
@@ -65,10 +66,15 @@ jobs:
6566
- name: Clone repo
6667
uses: actions/checkout@v2
6768

68-
- name: Cargo test
69+
- name: Cargo test (nightly)
70+
if: matrix.rust-toolchains == 'nightly'
6971
uses: actions-rs/cargo@v1
70-
env:
71-
RUSTC_BOOTSTRAP: "1"
7272
with:
7373
command: test
7474
args: --features nightly
75+
76+
- name: Cargo test
77+
if: matrix.rust-toolchains != 'nightly'
78+
uses: actions-rs/cargo@v1
79+
with:
80+
command: test

.github/workflows/future-proof.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,16 @@ jobs:
4040
if: matrix.cargo-locked != '--locked'
4141
run: cargo update
4242

43-
- name: Cargo test
43+
- name: Cargo test (nightly)
44+
if: matrix.rust-toolchains == 'nightly'
4445
uses: actions-rs/cargo@v1
45-
env:
46-
RUSTC_BOOTSTRAP: "1"
4746
with:
4847
command: test
4948
args: ${{ matrix.cargo-locked }} --features nightly
49+
50+
- name: Cargo test
51+
if: matrix.rust-toolchains != 'nightly'
52+
uses: actions-rs/cargo@v1
53+
with:
54+
command: test
55+
args: ${{ matrix.cargo-locked }}

src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#![forbid(unsafe_code)]
22
#![allow(nonstandard_style, unused_imports)]
33
#![cfg_attr(feature = "nightly",
4-
feature(external_doc),
5-
doc(include = "../README.md"),
4+
cfg_attr(all(), doc = include_str!("../README.md")),
65
)]
76

87
extern crate proc_macro;

0 commit comments

Comments
 (0)