[package]
edition = "2024"
rust-version = "1.89"
name = "sandfs"
version = "0.9.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lazy, copy-on-write workspaces over folders and git repositories, saved on disk and mounted as directories (FUSE on Linux, NFS on macOS): the library behind the sandfs command"
homepage = "https://github.com/lydakis/sandfs"
readme = "README.md"
keywords = [
"fuse",
"nfs",
"filesystem",
"sandbox",
"copy-on-write",
]
categories = ["filesystem"]
license = "MIT AND BSD-3-Clause"
repository = "https://github.com/lydakis/sandfs"
[features]
default = ["mount"]
mount = [
"dep:fuser",
"dep:tokio",
"dep:async-trait",
"dep:byteorder",
"dep:num-derive",
"dep:num-traits",
"dep:tracing",
]
[lib]
name = "sandfs"
path = "src/lib.rs"
[[example]]
name = "attempts"
path = "examples/attempts.rs"
[[example]]
name = "embed"
path = "examples/embed.rs"
[dependencies.anyhow]
version = "1"
[dependencies.bytes]
version = "1.12"
[dependencies.reflink-copy]
version = "0.1"
[dependencies.sandfs-core]
version = "0.9.0"
[dependencies.sandfs-git]
version = "0.9.0"
[dependencies.sandfs-mcp]
version = "0.9.0"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tempfile]
version = "3"
[dev-dependencies]
[target.'cfg(target_os = "linux")'.dependencies.fuser]
version = "0.18"
optional = true
[target.'cfg(target_os = "linux")'.dev-dependencies.async-trait]
version = "0.1"
[target.'cfg(target_os = "linux")'.dev-dependencies.byteorder]
version = "1.4"
[target.'cfg(target_os = "linux")'.dev-dependencies.num-derive]
version = "0.5"
[target.'cfg(target_os = "linux")'.dev-dependencies.num-traits]
version = "0.2"
[target.'cfg(target_os = "linux")'.dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"net",
"io-util",
"time",
"sync",
"macros",
]
[target.'cfg(target_os = "linux")'.dev-dependencies.tracing]
version = "0.1.31"
[target.'cfg(target_os = "macos")'.dependencies.async-trait]
version = "0.1"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.byteorder]
version = "1.4"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.fuser]
version = "0.18"
features = ["macos-no-mount"]
optional = true
[target.'cfg(target_os = "macos")'.dependencies.num-derive]
version = "0.5"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.num-traits]
version = "0.2"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"net",
"io-util",
"time",
"sync",
"macros",
"signal",
]
optional = true
[target.'cfg(target_os = "macos")'.dependencies.tracing]
version = "0.1.31"
optional = true
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(unix)".dependencies.nix]
version = "0.31"
features = [
"fs",
"process",
"resource",
"signal",
"user",
]
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"