Skip to content

Commit b5559ef

Browse files
committed
Use cargo-deadlinks instead of Python linkchecker
1 parent 72f84f7 commit b5559ef

File tree

4 files changed

+39
-19
lines changed

4 files changed

+39
-19
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ target_steps: &target_steps
55
- checkout
66
- restore_cache:
77
key: v1-sh1106-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
8-
- run: sudo apt install -qq linkchecker
8+
- run: rustup install 1.57.0 --profile minimal
9+
- run: cargo +1.57.0 install cargo-deadlinks --target x86_64-unknown-linux-gnu
910
- run: rustup default ${RUST_VERSION:-stable}
11+
# For docs gen
12+
- run: rustup target add thumbv7m-none-eabi
13+
- run: rustup target add thumbv7em-none-eabihf
1014
- run: rustup component add rustfmt
1115
- run: |
1216
SYSROOT=$(rustc --print sysroot)

CHANGELOG.md

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,45 @@
11
# Changelog
22

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

77
<!-- next-header -->
88

99
## [Unreleased] - ReleaseDate
1010

11+
### Changed
12+
13+
- **(breaking)** [#28](https://github.com/jamwaffles/sh1106/pull/28) Upgrade MSRV to 1.50.0, add a
14+
faster implementation of `DrawTarget::fill_solid`.
15+
1116
## [0.4.0] - 2021-07-11
1217

1318
### Changed
1419

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

1723
## [0.3.4] - 2020-12-28
1824

1925
### Fixed
2026

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

2330
## [0.3.3] - 2020-06-09
2431

2532
### Added
2633

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

2937
## [0.3.2] - 2020-04-30
3038

3139
### Added
3240

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

3544
## [0.3.1] - 2020-03-21
3645

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

4756
### Changed
4857

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

5161
## [0.3.0-alpha.4]
5262

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

5969
### Added
6070

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

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

7384
## 0.3.0-alpha.2
7485

75-
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.
86+
Upgrade to new embedded-graphics `0.6.0-alpha.2` release. Please see the
87+
[embedded-graphics changelog](https://github.com/jamwaffles/embedded-graphics/blob/c0ed1700635f307a4c5114fec1769147878fd584/CHANGELOG.md)
88+
for more information.
7689

7790
### Changed
7891

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

8195
## 0.3.0-alpha.1
8296

83-
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.
97+
Upgrade to new embedded-graphics `0.6.0-alpha.1` release. Please see the
98+
[embedded-graphics changelog](https://github.com/jamwaffles/embedded-graphics/blob/embedded-graphics-v0.6.0-alpha.1/CHANGELOG.md)
99+
for more information.
84100

85101
### Changed
86102

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

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

108+
[unreleased]: https://github.com/jamwaffles/sh1106/compare/v0.4.0...HEAD
92109
[0.4.0]: https://github.com/jamwaffles/sh1106/compare/v0.3.4...v0.4.0
93110
[0.3.4]: https://github.com/jamwaffles/sh1106/compare/v0.3.3...v0.3.4
94111
[0.3.3]: https://github.com/jamwaffles/sh1106/compare/v0.3.2...v0.3.3

build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/bin/sh
22

3-
set -e
3+
set -ex
44

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

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

11-
cargo test --lib --target x86_64-unknown-linux-gnu
12-
cargo test --doc --target x86_64-unknown-linux-gnu
11+
cargo deadlinks --ignore-fragments

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//!
3838
//! ## Draw some text to the display
3939
//!
40-
//! Uses [mode::GraphicsMode] and [embedded_graphics](../embedded_graphics/index.html).
40+
//! Uses [mode::GraphicsMode] and [embedded_graphics](https://docs.rs/embedded_graphics).
4141
//!
4242
//! ```rust,no_run
4343
//! use embedded_graphics::{

0 commit comments

Comments
 (0)