Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
89 lines (79 loc) · 2.44 KB
/
Copy pathCargo.toml
File metadata and controls
89 lines (79 loc) · 2.44 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[package]
name = "mdo-cli"
version = "0.6.1"
edition = "2021"
default-run = "mdo"
build = "build.rs"
authors = [
"Matt Wilkie <maphew@gmail.com>",
"Hafiz Ali Raza <haffizaliraza@gmail.com>", # original upstream author
]
description = "A simple Rust CLI to convert Markdown to HTML5 (styled with simple.css), with optional file watching"
license = "MIT OR Apache-2.0"
repository = "https://github.com/maphew/mdo"
homepage = "https://maphew.github.io/mdo/"
documentation = "https://docs.rs/mdo-cli"
readme = "README.md"
keywords = ["markdown", "html", "cli", "rust"]
categories = ["command-line-utilities", "text-processing"]
# Files shipped to crates.io. We must include `assets/` because the binary
# embeds simple.min.css at build time via `include_str!`.
include = [
"/src/**/*.rs",
"/tests/**/*.rs",
"/assets/simple.min.css",
"/assets/simple.css.LICENSE",
"/assets/mdo-default-typography.css",
"/assets/restore-simple-css.css",
"/assets/mdo.ico",
"/scripts/*.ps1",
"/scripts/*.sh",
"/build.rs",
"/Cargo.toml",
"/Cargo.lock",
"/CHANGELOG.md",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/README.md",
"/example.md",
]
# Forked with gratitude from Hafiz Ali Raza's original Markdown-to-HTML CLI
# (© 2025 Hafiz Ali Raza, MIT/Apache-2.0).
#
# This crate also bundles simple.css (https://simplecss.org/, MIT-licensed,
# © 2020 Kev Quirk). See assets/simple.css.LICENSE.
[dependencies]
ammonia = "4.1.4"
libc = "0.2"
pulldown-cmark = "0.13"
syntect = { version = "5.3", default-features = false, features = [
"default-syntaxes",
"default-themes",
"html",
"regex-fancy",
] }
clap = { version = "4", features = ["derive"] }
notify = "6"
url = "2.5"
[target.'cfg(target_os = "android")'.dependencies]
jni = "0.21"
[build-dependencies]
winresource = "0.1.31"
# Windows-only. Opens the rendered file via the Win32 ShellExecuteW API
# instead of `cmd /C start`, so cmd metacharacters in the path can never be
# interpreted as commands. See the SECURITY note in launch_browser
# (src/main.rs). opener calls ShellExecuteW directly — no cmd.exe.
[target.'cfg(windows)'.dependencies]
opener = "0.8"
windows-sys = { version = "0.61.2", features = ["Win32_Foundation", "Win32_Graphics_Gdi", "Win32_UI_WindowsAndMessaging"] }
[lib]
crate-type = ["rlib", "cdylib"]
[[bin]]
name = "mdo"
path = "src/main.rs"
[[bin]]
name = "mdo-open"
path = "src/bin/mdo-open.rs"
[[bin]]
name = "mdo-setup"
path = "src/bin/mdo-setup.rs"