Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor terminal representation again #45

Merged
merged 12 commits into from
Nov 8, 2018
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Add `TerminalCapability` struct as replacement for `mdcat::Terminal` trait to
remove dynamic dispatch and allow for more accurate and less complicated
conditional compilation of terminal support for different platforms (see
[GH-45]).

### Changed
- Drop support for Rust 1.29 and older.
- Do not test specific Rust on versions on Travis CI any longer; Rust stable
becomes the lowest supported Rust version.

### Removed
- `mdcat::Terminal` trait and implementations (see [GH-45]).

[GH-45]: https://github.com/lunaryorn/mdcat/pull/45

## [0.11.0] – 2018-10-25
### Changed
- Always print colours regardless of whether stdout if a tty or not.
Expand Down
22 changes: 12 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,25 @@ authors = ["Sebastian Wiesner <sebastian@swsnr.de>"]
travis-ci = { repository = "lunaryorn/mdcat" }

[features]
default = ["iterm2", "terminology", "remote_resources"]
default = ["vte50", "iterm2", "terminology", "remote_resources"]

# Enable special support for iTerm2.
iterm2 = ["mime", "base64"]
# Support for remote resources, eg, images. Note some terminals, eg,
# Terminology, support remote resources out of the box even if this feature is
# not active.
remote_resources = ["reqwest"]
# Enable special support for Terminology.
terminology = ["immeta"]
resources = ["url"]
remote_resources = ["reqwest", "resources"]

# Special terminal features
osc8_links = ["resources"]

# Terminal emulators
iterm2 = ["osc8_links", "resources", "mime", "base64"]
terminology = ["osc8_links", "resources", "immeta"]
vte50 = ["osc8_links"]

[dependencies]
failure = "^0.1"
term_size = "^0.3"
url = "^1.7"
ansi_term = "^0.11"

url = {version = "^1.7", optional = true}
reqwest = {version = "^0.9", optional = true}
mime = {version = "^0.3", optional = true}
base64 = {version = "^0.9", optional = true}
Expand Down
50 changes: 0 additions & 50 deletions src/error.rs

This file was deleted.

Loading