forked from jplatte/hinoki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
67 lines (58 loc) · 2.23 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[package]
name = "hinoki"
version = "0.1.0"
edition = "2021"
license = "AGPL-3.0-only"
[features]
default = ["markdown", "syntax-highlighting", "datetime"]
# Markdown to HTML support
markdown = ["dep:pulldown-cmark"]
# Syntax highlighting for markdown code blocks
syntax-highlighting = ["markdown", "dep:once_cell", "dep:syntect"]
# Filters for formatting timestamps as date / time / datetime
datetime = ["dep:minijinja-contrib"]
# Support for timezone conversion for timestamp formatting filters
timezone = ["datetime", "minijinja-contrib?/timezone"]
# Allow JSON files to be loaded with load_data
json = ["dep:serde_json"]
# Allow YAML files to be loaded with load_data
yaml = ["dep:serde_yaml"]
# Development server (`hinoki serve`) support, not yet working
dev-server = ["dep:tower-http"]
[dependencies]
anyhow = "1.0.75"
bumpalo-herd = "0.1.2"
camino = { version = "1.1.6", features = ["serde1"] }
clap = { version = "4.4.3", features = ["derive"] }
fs-err = "2.9.0"
globset = { version = "0.4.13", default-features = false }
indexmap = { version = "2.0.2", features = ["serde"] }
itertools = "0.12.0"
minijinja = { version = "1.0.7", features = ["custom_syntax", "loader"] }
minijinja-contrib = { version = "1.0.10", features = ["datetime"], optional = true }
once_cell = { version = "1.18.0", optional = true }
pulldown-cmark = { version = "0.9.3", optional = true }
rayon = "1.8.0"
serde = { version = "1.0.188", features = ["derive"] }
serde_json = { version = "1.0.107", optional = true }
serde_yaml = { version = "0.9.25", optional = true }
time = { version = "0.3.30", features = ["parsing", "serde-human-readable"] }
toml = "0.8.0"
tower-http = { version = "0.4.4", optional = true }
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
walkdir = "2.4.0"
[dependencies.syntect]
version = "5.1.0"
default-features = false
features = ["default-syntaxes", "html", "plist-load", "regex-fancy", "yaml-load"]
optional = true
# Enable some optimizations for specific dependencies.
# Otherwise, debug builds are unbearably slow.
[profile.dev.package]
flate2 = { opt-level = 2 }
regex-automata = { opt-level = 2 }
fancy-regex = { opt-level = 1 }
regex-syntax = { opt-level = 1 }
similar = { opt-level = 1 }
syntect = { opt-level = 1 }