-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
70 lines (61 loc) · 2.65 KB
/
Copy pathCargo.toml
File metadata and controls
70 lines (61 loc) · 2.65 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
[package]
authors = ["Takahiro Sato <harehare1110@gmail.com>"]
categories = ["command-line-utilities", "filesystem", "text-processing"]
description = "FUSE-mount a Markdown file as a virtual filesystem: headings become directories, section bodies become files"
edition = "2024"
homepage = "https://mqlang.org/"
keywords = ["markdown", "fuse", "filesystem", "mq"]
license = "MIT"
name = "mq-mount"
readme = "README.md"
repository = "https://github.com/harehare/mq-mount"
version = "0.1.3"
[[bin]]
name = "mq-mount"
path = "src/main.rs"
[package.metadata.binstall]
pkg-fmt = "bin"
pkg-url = "{ repo }/releases/download/v{ version }/mq-mount-{ target }{ binary-ext }"
[features]
default = ["mount"]
# The per-OS mount backend (NFSv3 on Unix, WinFSP on Windows). Split out so
# `document`/`fs`/`inode`/`vfs`'s core logic builds and tests without pulling
# in the server/runtime dependencies.
mount = ["dep:nfsserve", "dep:tokio", "dep:async-trait", "dep:winfsp", "dep:winfsp-sys", "dep:windows", "dep:widestring", "dep:notify", "dep:glob", "dep:mq-lang"]
[dependencies]
clap = {version = "4.6.1", features = ["derive"]}
glob = { version = "0.3", optional = true }
libc = "0.2"
miette = {version = "7.6.0", features = ["fancy"]}
mq-lang = { version = "0.8.5", optional = true }
mq-markdown = "0.8.5"
notify = { version = "8.2.0", optional = true }
rustc-hash = "2.1.2"
thiserror = "2.0.18"
tracing = "0.1.44"
tracing-subscriber = {version = "0.3.23", features = ["env-filter"]}
[target.'cfg(unix)'.dependencies]
async-trait = { version = "0.1.92", optional = true }
nfsserve = { version = "0.11.0", optional = true }
tokio = { version = "1.53.1", features = ["rt-multi-thread", "macros", "net", "sync", "signal", "time", "process"], optional = true }
[target.'cfg(windows)'.dependencies]
# Windows has no lightweight user-space NFS path (the built-in NFS client is
# gated to Pro/Enterprise/Server editions and doesn't take custom ports), so
# WinFSP is the mount backend here. Unlike the NFS path, this does require a
# separately installed driver (https://winfsp.dev) — unverified in this repo's
# CI beyond compiling, see README.
winfsp = { version = "0.13", optional = true, features = ["system"] }
winfsp-sys = { version = "0.12", optional = true }
windows = { version = "0.62", optional = true, features = ["Win32_Foundation", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Threading"] }
widestring = { version = "1", optional = true }
[target.'cfg(windows)'.build-dependencies]
winfsp = { version = "0.13", features = ["delayload"] }
[dev-dependencies]
proptest = "1.11.0"
rstest = "0.26.1"
tempfile = "3.27"
[profile.release]
codegen-units = 1
lto = "fat"
opt-level = 3
strip = true