Cargo Features

[dependencies]
tpnote = { version = "1.24.2", default-features = false, features = ["message-box", "read-clipboard", "html-clipboard", "viewer", "lang-detection", "renderer"] }
default = html-clipboard, lang-detection, message-box, read-clipboard, renderer, viewer

These default features are set whenever tpnote is added without default-features = false somewhere in the dependency tree.

message-box default

To disable features: cargo build --no-default-features If you can do away with error message popup boxes (for example on a headless system), no GTK is required. In this case all error messages will appear on the console from where you started Tp-Note in stderr only. Disable this feature if you do not want error message boxes.

Enables msgbox and notify-rust

read-clipboard default = wl-clipboard-rs

Enables clipboard-rs

html-clipboard default

When the feature read-clipboard is also enabled, the clipboard detects HTML. This feature declaration is used in this crate and also forwarded to tpnote_lib.

Enables html-clipboard of tpnote-lib

viewer default

Enables webbrowser ^0.8.15, httparse, httpdate, notify, and notify-debouncer-mini, viewer of tpnote-lib

Affects settings::ENV_VAR_TPNOTE_BROWSER

lang-detection default

This feature declaration is forwarded to tpnote_lib and not used in this crate.

Enables lang-detection of tpnote-lib

renderer default

This feature declaration is used in this crate and also forwarded to tpnote_lib.

Enables renderer of tpnote-lib

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

wl-clipboard-rs unix read-clipboard