Skip to content
This repository was archived by the owner on Mar 20, 2022. It is now read-only.

Commit 65724dc

Browse files
committed
Fixed failing documentation builds without the embedded-hal feature.
1 parent 6383099 commit 65724dc

File tree

6 files changed

+24
-16
lines changed

6 files changed

+24
-16
lines changed

.github/workflows/ci.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
- uses: actions-rs/toolchain@v1
1616
with:
1717
toolchain: stable
18-
- run: RUSTFLAGS="-D warnings" cargo build --verbose --no-default-features
19-
- run: RUSTFLAGS="-D warnings" cargo build --verbose --no-default-features --features embedded-hal
20-
- run: RUSTFLAGS="-D warnings" cargo build --verbose --no-default-features --features std
21-
- run: RUSTFLAGS="-D warnings" cargo build --verbose --all-features
18+
- run: RUSTFLAGS="-D warnings" cargo build --no-default-features
19+
- run: RUSTFLAGS="-D warnings" cargo build --no-default-features --features embedded-hal
20+
- run: RUSTFLAGS="-D warnings" cargo build --no-default-features --features std
21+
- run: RUSTFLAGS="-D warnings" cargo build --all-features
2222

2323
test:
2424
name: Unit Tests
@@ -28,7 +28,7 @@ jobs:
2828
- uses: actions-rs/toolchain@v1
2929
with:
3030
toolchain: stable
31-
- run: cargo test --verbose --all-features
31+
- run: cargo test --all-features
3232

3333
clippy_check:
3434
name: Clippy
@@ -63,6 +63,9 @@ jobs:
6363
- uses: actions-rs/toolchain@v1
6464
with:
6565
toolchain: stable
66+
- run: cargo doc --no-default-features
67+
- run: cargo doc --no-default-features --features embedded-hal
68+
- run: cargo doc --no-default-features --features std
6669
- run: cargo doc --all-features
6770

6871
rustdoc:

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.5.1] - 2021-02-06
8+
### Fixed
9+
- Fixed failing documentation builds without the `embedded-hal` feature.
10+
711
## [0.5.0] - 2021-02-06
812
### Added
913
- Added the `Default` trait for `DuplexStatus`, `LinkStatus`, and `SpeedStatus`.
@@ -66,7 +70,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6670
## [0.1.0] - 2021-01-02
6771
- Initial release
6872

69-
[Unreleased]: https://github.com/newAM/w5500-ll-rs/compare/v0.5.0...HEAD
73+
[Unreleased]: https://github.com/newAM/w5500-ll-rs/compare/v0.5.1...HEAD
74+
[0.5.1]: https://github.com/newAM/w5500-ll-rs/compare/v0.5.0...v0.5.1
7075
[0.5.0]: https://github.com/newAM/w5500-ll-rs/compare/v0.4.0...v0.5.0
7176
[0.4.0]: https://github.com/newAM/w5500-ll-rs/compare/v0.3.0...v0.4.0
7277
[0.3.0]: https://github.com/newAM/w5500-ll-rs/compare/v0.2.1...v0.3.0

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "w5500-ll"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
authors = ["Alex M. <[email protected]>"]
55
edition = "2018"
66
repository = "https://github.com/newAM/w5500-ll-rs"

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ By default only the `embedded-hal` feature is enabled.
4747
[w5500-hl]: https://github.com/newAM/w5500-hl-rs
4848
[w5500-regsim]: https://github.com/newAM/w5500-regsim-rs
4949
[Wiznet W5500]: https://www.wiznet.io/product-item/w5500/
50-
[`blocking`]: https://docs.rs/w5500-ll/0.5.0/w5500_ll/blocking/index.html
51-
[`Registers`]: https://docs.rs/w5500-ll/0.5.0/w5500_ll/trait.Registers.html
52-
[`w5500_ll::net`]: https://docs.rs/w5500-ll/0.5.0/w5500_ll/net/index.html
50+
[`blocking`]: https://docs.rs/w5500-ll/0.5.1/w5500_ll/blocking/index.html
51+
[`Registers`]: https://docs.rs/w5500-ll/0.5.1/w5500_ll/trait.Registers.html
52+
[`w5500_ll::net`]: https://docs.rs/w5500-ll/0.5.1/w5500_ll/net/index.html

src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@
5050
//! [w5500-hl]: https://github.com/newAM/w5500-hl-rs
5151
//! [w5500-regsim]: https://github.com/newAM/w5500-regsim-rs
5252
//! [Wiznet W5500]: https://www.wiznet.io/product-item/w5500/
53-
//! [`blocking`]: https://docs.rs/w5500-ll/0.5.0/w5500_ll/blocking/index.html
54-
//! [`Registers`]: https://docs.rs/w5500-ll/0.5.0/w5500_ll/trait.Registers.html
55-
//! [`w5500_ll::net`]: https://docs.rs/w5500-ll/0.5.0/w5500_ll/net/index.html
56-
#![doc(html_root_url = "https://docs.rs/w5500-ll/0.5.0")]
53+
//! [`blocking`]: https://docs.rs/w5500-ll/0.5.1/w5500_ll/blocking/index.html
54+
//! [`Registers`]: https://docs.rs/w5500-ll/0.5.1/w5500_ll/trait.Registers.html
55+
//! [`w5500_ll::net`]: https://docs.rs/w5500-ll/0.5.1/w5500_ll/net/index.html
56+
#![doc(html_root_url = "https://docs.rs/w5500-ll/0.5.1")]
5757
#![cfg_attr(docsrs, feature(doc_cfg))]
5858
#![forbid(unsafe_code)]
5959
#![deny(missing_docs)]
6060
#![cfg_attr(not(feature = "std"), no_std)]
6161

62-
#[cfg(any(feature = "embedded-hal", doc))]
62+
#[cfg(feature = "embedded-hal")]
6363
#[cfg_attr(docsrs, doc(cfg(feature = "embedded-hal")))]
6464
pub mod blocking;
6565
pub mod net;

src/spi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub const fn fdm_header_4b(address: u16, block: u8, mode: AccessMode) -> [u8; HE
103103
/// Recommended W5500 SPI mode.
104104
///
105105
/// The W5500 may operate in SPI mode 0 or SPI mode 3.
106-
#[cfg(any(feature = "embedded-hal", doc))]
106+
#[cfg(feature = "embedded-hal")]
107107
#[cfg_attr(docsrs, doc(cfg(feature = "embedded-hal")))]
108108
pub const MODE: embedded_hal::spi::Mode = embedded_hal::spi::Mode {
109109
polarity: embedded_hal::spi::Polarity::IdleLow,

0 commit comments

Comments
 (0)