Skip to content

Commit

Permalink
Use cargo-deadlinks instead of Python linkchecker
Browse files Browse the repository at this point in the history
  • Loading branch information
jamwaffles committed Mar 22, 2022
1 parent 72f84f7 commit b5559ef
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 19 deletions.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ target_steps: &target_steps
- checkout
- restore_cache:
key: v1-sh1106-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
- run: sudo apt install -qq linkchecker
- run: rustup install 1.57.0 --profile minimal
- run: cargo +1.57.0 install cargo-deadlinks --target x86_64-unknown-linux-gnu
- run: rustup default ${RUST_VERSION:-stable}
# For docs gen
- run: rustup target add thumbv7m-none-eabi
- run: rustup target add thumbv7em-none-eabihf
- run: rustup component add rustfmt
- run: |
SYSROOT=$(rustc --print sysroot)
Expand Down
45 changes: 31 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,45 @@
# Changelog

[`sh1106`](https://crates.io/crates/sh1106) is a Rust driver for the SH1106 OLED display. It supports
[embedded-graphics](https://crates.io/crates/embedded-graphics) or raw pixel drawing modes and works
with the [embedded-hal](crates.io/crates/embedded-hal) traits for maximum portability.
[`sh1106`](https://crates.io/crates/sh1106) is a Rust driver for the SH1106 OLED display. It
supports [embedded-graphics](https://crates.io/crates/embedded-graphics) or raw pixel drawing modes
and works with the [embedded-hal](crates.io/crates/embedded-hal) traits for maximum portability.

<!-- next-header -->

## [Unreleased] - ReleaseDate

### Changed

- **(breaking)** [#28](https://github.com/jamwaffles/sh1106/pull/28) Upgrade MSRV to 1.50.0, add a
faster implementation of `DrawTarget::fill_solid`.

## [0.4.0] - 2021-07-11

### Changed

- **(breaking)** [#25](https://github.com/jamwaffles/sh1106/pull/25) Upgrade to `embedded-graphics` 0.7.
- **(breaking)** [#25](https://github.com/jamwaffles/sh1106/pull/25) Upgrade to `embedded-graphics`
0.7.

## [0.3.4] - 2020-12-28

### Fixed

- [#23](https://github.com/jamwaffles/sh1106/pull/23) Fixed command bytes for `PreChargePeriod` and `VcomhDeselect`.
- [#23](https://github.com/jamwaffles/sh1106/pull/23) Fixed command bytes for `PreChargePeriod` and
`VcomhDeselect`.

## [0.3.3] - 2020-06-09

### Added

- [#22](https://github.com/jamwaffles/sh1106/pull/22) Add `DisplaySize::Display128x64NoOffset` variant for 128x64 displays that don't use a 132x64 buffer internally.
- [#22](https://github.com/jamwaffles/sh1106/pull/22) Add `DisplaySize::Display128x64NoOffset`
variant for 128x64 displays that don't use a 132x64 buffer internally.

## [0.3.2] - 2020-04-30

### Added

- [#20](https://github.com/jamwaffles/sh1106/pull/20) Add `set_contrast` method to set the display contrast/brightness.
- [#20](https://github.com/jamwaffles/sh1106/pull/20) Add `set_contrast` method to set the display
contrast/brightness.

## [0.3.1] - 2020-03-21

Expand All @@ -46,7 +55,8 @@ with the [embedded-hal](crates.io/crates/embedded-hal) traits for maximum portab

### Changed

- **(breaking)** [#18](https://github.com/jamwaffles/sh1106/pull/18) Upgrade to embedded-graphics 0.6.0
- **(breaking)** [#18](https://github.com/jamwaffles/sh1106/pull/18) Upgrade to embedded-graphics
0.6.0

## [0.3.0-alpha.4]

Expand All @@ -58,7 +68,8 @@ with the [embedded-hal](crates.io/crates/embedded-hal) traits for maximum portab

### Added

- Added the `NoOutputPin` dummy pin type for SPI cases when no Chip Select pin is required. Use it like this:
- Added the `NoOutputPin` dummy pin type for SPI cases when no Chip Select pin is required. Use it
like this:

```rust
let spi = Spi::spi1(
Expand All @@ -72,23 +83,29 @@ let mut disp: GraphicsMode<_> = sh1106::Builder::new()

## 0.3.0-alpha.2

Upgrade to new embedded-graphics `0.6.0-alpha.2` release. Please see the [embedded-graphics changelog](https://github.com/jamwaffles/embedded-graphics/blob/c0ed1700635f307a4c5114fec1769147878fd584/CHANGELOG.md) for more information.
Upgrade to new embedded-graphics `0.6.0-alpha.2` release. Please see the
[embedded-graphics changelog](https://github.com/jamwaffles/embedded-graphics/blob/c0ed1700635f307a4c5114fec1769147878fd584/CHANGELOG.md)
for more information.

### Changed

- **(breaking)** #11 Upgraded to [embedded-graphics](https://crates.io/crates/embedded-graphics) 0.6.0-alpha.2
- **(breaking)** #11 Upgraded to [embedded-graphics](https://crates.io/crates/embedded-graphics)
0.6.0-alpha.2

## 0.3.0-alpha.1

Upgrade to new embedded-graphics `0.6.0-alpha.1` release. Please see the [embedded-graphics changelog](https://github.com/jamwaffles/embedded-graphics/blob/embedded-graphics-v0.6.0-alpha.1/CHANGELOG.md) for more information.
Upgrade to new embedded-graphics `0.6.0-alpha.1` release. Please see the
[embedded-graphics changelog](https://github.com/jamwaffles/embedded-graphics/blob/embedded-graphics-v0.6.0-alpha.1/CHANGELOG.md)
for more information.

### Changed

- **(breaking)** #9 Upgraded to [embedded-graphics](https://crates.io/crates/embedded-graphics) 0.6.0-alpha.1
- **(breaking)** #9 Upgraded to [embedded-graphics](https://crates.io/crates/embedded-graphics)
0.6.0-alpha.1

<!-- next-url -->
[unreleased]: https://github.com/jamwaffles/sh1106/compare/v0.4.0...HEAD

[unreleased]: https://github.com/jamwaffles/sh1106/compare/v0.4.0...HEAD
[0.4.0]: https://github.com/jamwaffles/sh1106/compare/v0.3.4...v0.4.0
[0.3.4]: https://github.com/jamwaffles/sh1106/compare/v0.3.3...v0.3.4
[0.3.3]: https://github.com/jamwaffles/sh1106/compare/v0.3.2...v0.3.3
Expand Down
5 changes: 2 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/bin/sh

set -e
set -ex

cargo build --target $TARGET --all-features --release

if [ -z $DISABLE_EXAMPLES ]; then
cargo build --target $TARGET --all-features --examples
fi

cargo test --lib --target x86_64-unknown-linux-gnu
cargo test --doc --target x86_64-unknown-linux-gnu
cargo deadlinks --ignore-fragments
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
//!
//! ## Draw some text to the display
//!
//! Uses [mode::GraphicsMode] and [embedded_graphics](../embedded_graphics/index.html).
//! Uses [mode::GraphicsMode] and [embedded_graphics](https://docs.rs/embedded_graphics).
//!
//! ```rust,no_run
//! use embedded_graphics::{
Expand Down

0 comments on commit b5559ef

Please sign in to comment.