mirror of
https://github.com/helix-editor/helix
synced 2026-11-24 03:14:25 +01:00
* workspace trust: v2 Simplifies the previous implementation: user is prompted to either trust or deny, esc skips the prompt for now. Less choice fatigue and matches other implementations. Unlike other editors, we follow direnv implementation: .helix/ contents are hashed and a change to the config requires the user to re-approve. This avoids attack vectors where the user trusts the workspace but pulls in an untrusted PR branch. To make the hashing safe I had to pull in sha2, we could in practice use sha1 that's already in the dependency tree via gix, but that seems like a bad cryptographic choice in 2026. The on-disk file layout changed to use a directory with a file per filepath, this avoids concurrent conflicts if you have multiple different editor instances writing to the trust config. If the workspace is running in untrusted mode and trusting would make a meaningful change (local config exists, or in level=none a language server would start), then we show an indicator on the bottom corner of the editor. There's still a problem with git config: smudge filters still get executed and disabling that in untrusted mode would break autocrlf diffs. Since we only leverage gix for diffing, I'm hoping upstream could consider a patch for this. * Address lints * Address clippy lint * Break doc links to private items Should get the lints CI green * fix: gix regression * Rename all to insecure, reintroduce globs * fix lint * Remove unused function --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
38 lines
812 B
INI
38 lines
812 B
INI
[package]
|
|
name = "helix-loader"
|
|
description = "Build bootstrapping for Helix crates"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
categories.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
|
|
[[bin]]
|
|
name = "hx-loader"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
helix-stdx = { path = "../helix-stdx" }
|
|
|
|
anyhow = "1"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
toml.workspace = true
|
|
etcetera.workspace = true
|
|
once_cell = "1.21"
|
|
parking_lot.workspace = true
|
|
sha2 = "0.10"
|
|
globset.workspace = true
|
|
log = "0.4"
|
|
|
|
# TODO: these two should be on !wasm32 only
|
|
|
|
# cloning/compiling tree-sitter grammars
|
|
cc = { version = "1" }
|
|
threadpool = { version = "1.0" }
|
|
tempfile.workspace = true
|
|
|
|
tree-house.workspace = true
|