[package]
authors.workspace = true
build = "build.rs"
categories.workspace = true
description.workspace = true
documentation.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
name = "tp-note"
readme.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true
[build-dependencies]
winresource = "0.1.14"
[[bin]]
name = "tpnote"
path = "src/main.rs"
[package.metadata.deb]
name = "tpnote"
maintainer = "Jens Getreu, <getreu@web.de>"
copyright = "2015-2020, Jens Getreu <getreu@web.de>"
depends = "$auto"
extended-description = '''
_Tp-Note_ is a note taking tool and a template system, that synchronizes the
note's metadata with its filename. _Tp-Note_ collects various information
about its environment and the clipboard and stores it in variables. New
notes are created by filling these variables in predefined and customizable
`Tera`-templates. In case `<path>` points to an existing _Tp-Note_-file, the
note's metadata is analysed and, if necessary, its filename is adjusted.
For all other file types, _Tp-Note_ creates a new note annotating the
file `<path>` points to. If `<path>` is a directory (or, when omitted the
current working directory), a new note is created in that directory. After
creation, _Tp-Note_ launches an external editor of your choice. Although the
templates are written for Markdown, _Tp-Note_ is not tied to
any specific markup language. However, _Tp-Note_ comes with an optional
viewer feature, that currently renders only Markdown, ReStructuredText and
HTML. Note, that there is also some limited support for Asciidoc and
WikiText. The note's rendition with its hyperlinks is live updated and
displayed in the user's webbrowser.
'''
assets = [
["../docs/build/html/index.html", "usr/share/doc/tpnote/", "644"],
["../docs/build/pdf/tpnote--manpage.pdf", "usr/share/doc/tpnote/", "644"],
["../docs/build/pdf/tpnote--manual.pdf", "usr/share/doc/tpnote/", "644"],
["../docs/build/man/man1/tpnote.1.gz", "usr/share/man/man1/", "644"],
["../target/x86_64-unknown-linux-gnu/release/tpnote", "usr/bin/tpnote", "755"],
["../assets/tpnote.svg", "usr/share/pixmaps/", "644"]
]
[features]
default = ["read-clipboard", "message-box", "viewer", "renderer"]
message-box = ["msgbox"]
read-clipboard = ["copypasta"]
viewer = ["notify", "httparse", "webbrowser", "httpdate", "percent-encoding"]
renderer = []
[dependencies]
atty = "0.2.14"
copypasta = { version = "0.8.1", optional = true }
directories = "4.0.1"
httparse = { version = "1.8.0", optional = true }
httpdate = { version = "1.0.2", optional = true }
lazy_static.workspace = true
log.workspace = true
msgbox = { version = "0.7.0", optional = true }
notify-debouncer-mini = "0.2.1"
notify = { version = "5.0.0", optional = true }
percent-encoding = { version = "2.2.0", optional = true }
sanitize-filename-reader-friendly.workspace = true
semver = "1.0.15"
serde.workspace = true
serde_yaml.workspace = true
structopt = "0.3.26"
thiserror.workspace = true
time = "0.3.17"
toml = "0.5.10"
tpnote-lib = { version = "0.15.1", default-features = false, features = ["renderer", "viewer"] }
webbrowser = { version = "0.8.2", optional = true }
windows-sys = { version = "0.42.0", features = [
"Win32_Globalization",
"Win32_System_SystemServices",
] }
[target.'cfg(windows)'.dependencies]
win32job = "1.0.2"