rusty-man/Cargo.toml
Robin Krahl 5ce0365c7f Add --viewer option and plain text viewer
This patch adds a new --viewer command line option that lets the user
select a viewer that displays the documentation.  It also adds a default
viewer implementation that uses html2text to generate plain text from
the HTML documentation.

html2text requires the ptr_cast feature and we use the Option::as_deref
method in the viewer implementation, so we have to update the minimum
supported Rust version to 1.40.
2020-07-19 15:44:21 +02:00

23 lines
539 B
TOML

# SPDX-FileCopyrightText: 2020 Robin Krahl <robin.krahl@ireas.org>
# SPDX-License-Identifier: CC0-1.0
[package]
name = "rusty-man"
version = "0.1.0"
authors = ["Robin Krahl <robin.krahl@ireas.org>"]
edition = "2018"
description = "Command-line interface for rustdoc documentation"
keywords = ["doc", "cli", "rustdoc"]
categories = ["command-line-utilities"]
readme = "README.md"
license = "MIT"
[dependencies]
anyhow = "1.0.31"
html2text = "0.1.12"
kuchiki = "0.8.0"
[dependencies.structopt]
version = "0.3.15"
default-features = false