From de23aa3f2bebcbae0018162af798bf0ca7017c52 Mon Sep 17 00:00:00 2001 From: Marshall Pierce Date: Wed, 24 Jun 2020 19:07:56 -0600 Subject: [PATCH] Remove running tests in the readme It is too much of a pain to support stable (which supports `cfg(doctest)`), 1.39.0 (which has it, but as an experimental feature), and 1.34.0 (which doesn't have it at all). Fixes #135. --- .travis.yml | 2 ++ Cargo.toml | 1 - src/lib.rs | 7 ------- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2c83a7b..fc3ec8f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,8 @@ sudo: required matrix: include: - rust: 1.34.0 + # cfg(doctest) is experimental in 1.39 but ignored with 1.34.0, and that snuck in when 1.39.0 wasn't tested + - rust: 1.39.0 - rust: stable - rust: beta - rust: nightly diff --git a/Cargo.toml b/Cargo.toml index 43d9086..ad54514 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,6 @@ harness = false [dev-dependencies] criterion = "0.3" rand = "0.6.1" -doc-comment = "0.3" [features] default = ["std"] diff --git a/src/lib.rs b/src/lib.rs index b6aee69..2a3f98f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -76,13 +76,6 @@ extern crate alloc; #[cfg(any(feature = "std", test))] extern crate std as alloc; -#[cfg(doctest)] -#[macro_use] -extern crate doc_comment; - -#[cfg(doctest)] -doctest!("../README.md"); - mod chunked_encoder; pub mod display; #[cfg(any(feature = "std", test))]