-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
69 lines (62 loc) · 2.6 KB
/
Copy pathCargo.toml
File metadata and controls
69 lines (62 loc) · 2.6 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
[package]
name = "clickfs"
version = "0.4.2"
edition = "2021"
description = "Mount ClickHouse as a read-only POSIX filesystem"
license = "MIT OR Apache-2.0"
authors = ["donge <donge@donge.org>"]
repository = "https://github.com/donge/clickfs"
homepage = "https://donge.github.io/clickfs"
documentation = "https://donge.github.io/clickfs"
readme = "README.md"
keywords = ["clickhouse", "fuse", "filesystem", "cli", "database"]
categories = ["command-line-utilities", "filesystem", "database"]
exclude = ["docs/*", "tests/*", "TEST_REPORT.md", ".github/*"]
# cargo-binstall: pull prebuilt binaries from GitHub Releases instead of
# compiling from source. Names match the release.yml asset naming.
[package.metadata.binstall]
pkg-fmt = "tgz"
bin-dir = "{ bin }{ binary-ext }"
[package.metadata.binstall.overrides.x86_64-unknown-linux-musl]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-linux-x86_64.tar.gz"
[package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-linux-x86_64.tar.gz"
[package.metadata.binstall.overrides.aarch64-unknown-linux-musl]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-linux-aarch64.tar.gz"
[package.metadata.binstall.overrides.aarch64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-linux-aarch64.tar.gz"
[package.metadata.binstall.overrides.aarch64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-macos-arm64.tar.gz"
[[bin]]
name = "clickfs"
path = "src/main.rs"
[features]
default = ["fuse"]
fuse = ["dep:fuser"]
[dependencies]
fuser = { version = "0.14", default-features = false, optional = true }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "signal", "time"] }
reqwest = { version = "0.12", default-features = false, features = ["stream", "rustls-tls", "gzip"] }
bytes = "1"
futures = "0.3"
clap = { version = "4", features = ["derive", "env"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
thiserror = "1"
ahash = "0.8"
dashmap = "6"
libc = "0.2"
url = "2"
once_cell = "1"
uuid = { version = "1", features = ["v4"] }
serde_json = "1"
# On macOS, fuser must link against macFUSE's libfuse; the pure-Rust ABI path
# is Linux-only. Enable the default features (libfuse + libfuse3) here so
# `cargo build` works once macFUSE is installed (`brew install --cask macfuse`).
[target.'cfg(target_os = "macos")'.dependencies]
fuser = { version = "0.14", optional = true }
[profile.release]
opt-level = 3
lto = "thin"
strip = true
codegen-units = 1