From b4d483eafa9edb56f9948d0957e70ffdbc1de835 Mon Sep 17 00:00:00 2001 From: Yushi OMOTE Date: Sat, 14 Dec 2019 19:37:22 +0900 Subject: [PATCH] No need to build readme --- .github/workflows/rust.yml | 12 +++--------- core/Cargo.toml | 3 +-- core/src/lib.rs | 4 ---- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 108b877..6169efd 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,14 +21,8 @@ jobs: toolchain: nightly override: true - name: Build (nightly) - run: | - cd core - cargo build --verbose --features readme + run: cargo build --verbose - name: Build examples (nightly) - run: | - cd core - cargo build --verbose --examples --features readme + run: cargo build --verbose --examples - name: Test (nightly) - run: | - cd core - cargo test --verbose --features readme + run: cargo test --verbose diff --git a/core/Cargo.toml b/core/Cargo.toml index 4ee4b15..810657c 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -9,7 +9,7 @@ homepage = "https://github.com/yushiomote/rgy" repository = "https://github.com/yushiomote/rgy" documentation = "https://docs.rs/rgy" license = "MIT" -readme = "README.md" +readme = "../README.md" [dependencies] lazy_static = { version = "1.2", features = ["spin_no_std"] } @@ -29,4 +29,3 @@ core_affinity = "0.5" [features] default = [] color = [] -readme = [] diff --git a/core/src/lib.rs b/core/src/lib.rs index f2e2b16..3d4ce07 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -104,12 +104,8 @@ //! ``` #![no_std] -#![cfg_attr(feature = "readme", feature(external_doc))] #![warn(missing_docs)] -#[cfg_attr(feature = "readme", doc(include = "../../README.md"))] -type _Doctest = (); - extern crate alloc; mod alu;