Skip to content

Commit

Permalink
No need to build readme
Browse files Browse the repository at this point in the history
  • Loading branch information
YushiOMOTE committed Dec 14, 2019
1 parent 8d4dd44 commit b4d483e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand All @@ -29,4 +29,3 @@ core_affinity = "0.5"
[features]
default = []
color = []
readme = []
4 changes: 0 additions & 4 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b4d483e

Please sign in to comment.