Files
Bear-mirror/Cargo.toml
Laszlo Nagy e72d69e6ba config: replace directories with direct env lookup
bear/src/config/loader.rs was the only consumer of the directories
crate. Replace BaseDirs / ProjectDirs with a small per-platform
resolver (XDG_CONFIG_HOME or $HOME/.config on Unix; LOCALAPPDATA /
APPDATA on Windows). Drops directories, dirs-sys, and option-ext
from the graph.

Behavior changes (silent for affected users):
- macOS no longer probes ~/Library/Application Support/. CLI tools
  on macOS should use ~/.config/, matching git, gh, nvim, fish,
  ripgrep, helix, etc. Bear's INSTALL.md already nudges macOS users
  toward ~/.config for fish completions.
- Windows path flattens from \rizsotto\Bear\config\ to \Bear\,
  paralleling the Unix Bear/ subdir.

Documentation updates: a new FILES section in man/bear.1.md lists
the concrete search order; the rustdoc on file_locations does the
same; man/bear.1 regenerated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 10:44:08 +00:00

55 lines
1.5 KiB
TOML

# SPDX-License-Identifier: GPL-3.0-or-later
[workspace]
members = [
"bear-codegen",
"bear-completions",
"platform-checks",
"bear",
"intercept-preload",
"integration-tests",
]
resolver = "3"
[workspace.package]
version = "4.1.3"
authors = ["László Nagy <rizsotto at gmail dot com>"]
repository = "https://github.com/rizsotto/Bear"
homepage = "https://github.com/rizsotto/Bear"
license = "GPL-3.0-or-later"
edition = "2024"
[workspace.dependencies]
thiserror = "2.0"
anyhow = "1.0"
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = { version = "1.0", default-features = false, features = ["std"] }
serde-saphyr = "0.0.24"
crossbeam-channel = { version = "0.5", default-features = false, features = ["std"] }
clap = { version = "4.5", default-features = false, features = ["std", "cargo", "help", "usage", "suggestions"] }
clap_complete = { version = "4.5", default-features = false }
log = { version = "0.4", default-features = false, features = ["std"] }
env_logger = { version = "0.11", default-features = false }
shell-words = "1.1"
tempfile = { version = "3.19", default-features = false }
signal-hook = { version = "0.4", default-features = false }
regex-lite = "0.1"
libc = "0.2"
errno = "0.3"
ctor = "0.6"
which = "8.0"
cc = "1.2"
assert_cmd = "2.0"
assert_fs = "1.1"
predicates = "3.1"
mockall = "0.14"
insta = "1.46"
proptest = "1.11"
encoding_rs = "0.8"
[profile.release]
strip = true
lto = true
opt-level = 3
codegen-units = 1