Compare commits

...

8 Commits

Author SHA1 Message Date
Stephen Broadley
7824958511
Merge 8e95c510f9 into a219d5aabb 2024-11-20 15:45:55 -06:00
dependabot[bot]
a219d5aabb
build(deps): bump unicode-general-category from 0.6.0 to 1.0.0 (#12089)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-20 11:41:07 -06:00
Michael Davis
d489c03c4f helix-term: Use workspace thiserror dep 2024-11-20 11:40:45 -06:00
dependabot[bot]
f621423e7d build(deps): bump thiserror from 1.0.64 to 2.0.3
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.64 to 2.0.3.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.64...2.0.3)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-20 11:40:45 -06:00
dependabot[bot]
35802cb025
build(deps): bump which from 6.0.3 to 7.0.0 (#12090)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-20 11:40:00 -06:00
Michael Davis
6cca98264f Re-vendor encoding_rs test data
This fixes a test (`helix_view::document::gb18030_decode`) since
encoding_rs updated its gb18030 encoding to match GB18030-2022 (was
GB18030-2005).

The newly vendored files update the license line and I've included the
referenced license in the `encoding/` directory.
2024-11-13 15:30:17 +09:00
Michael Davis
9806ca08b1 Fix breaking change in gix Tree::loop_entry_by_path 2024-11-13 15:30:17 +09:00
dependabot[bot]
b5d56e57a6 build(deps): bump the rust-dependencies group across 1 directory with 11 updates
Bumps the rust-dependencies group with 10 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [regex](https://github.com/rust-lang/regex) | `1.11.0` | `1.11.1` |
| [url](https://github.com/servo/rust-url) | `2.5.2` | `2.5.3` |
| [serde](https://github.com/serde-rs/serde) | `1.0.210` | `1.0.215` |
| [encoding_rs](https://github.com/hsivonen/encoding_rs) | `0.8.34` | `0.8.35` |
| [anyhow](https://github.com/dtolnay/anyhow) | `1.0.90` | `1.0.93` |
| [tempfile](https://github.com/Stebalien/tempfile) | `3.13.0` | `3.14.0` |
| [tokio](https://github.com/tokio-rs/tokio) | `1.40.0` | `1.41.1` |
| [libc](https://github.com/rust-lang/libc) | `0.2.161` | `0.2.162` |
| [cc](https://github.com/rust-lang/cc-rs) | `1.1.31` | `1.1.37` |
| [gix](https://github.com/GitoxideLabs/gitoxide) | `0.66.0` | `0.67.0` |



Updates `regex` from 1.11.0 to 1.11.1
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.11.0...1.11.1)

Updates `url` from 2.5.2 to 2.5.3
- [Release notes](https://github.com/servo/rust-url/releases)
- [Commits](https://github.com/servo/rust-url/compare/v2.5.2...v2.5.3)

Updates `serde` from 1.0.210 to 1.0.215
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.210...v1.0.215)

Updates `encoding_rs` from 0.8.34 to 0.8.35
- [Commits](https://github.com/hsivonen/encoding_rs/compare/v0.8.34...v0.8.35)

Updates `anyhow` from 1.0.90 to 1.0.93
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.90...1.0.93)

Updates `tempfile` from 3.13.0 to 3.14.0
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.13.0...v3.14.0)

Updates `tokio` from 1.40.0 to 1.41.1
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.40.0...tokio-1.41.1)

Updates `libc` from 0.2.161 to 0.2.162
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Changelog](https://github.com/rust-lang/libc/blob/0.2.162/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.161...0.2.162)

Updates `rustix` from 0.38.37 to 0.38.40
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.37...v0.38.40)

Updates `cc` from 1.1.31 to 1.1.37
- [Release notes](https://github.com/rust-lang/cc-rs/releases)
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.31...cc-v1.1.37)

Updates `gix` from 0.66.0 to 0.67.0
- [Release notes](https://github.com/GitoxideLabs/gitoxide/releases)
- [Changelog](https://github.com/GitoxideLabs/gitoxide/blob/main/CHANGELOG.md)
- [Commits](https://github.com/GitoxideLabs/gitoxide/compare/gix-v0.66.0...gix-v0.67.0)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: url
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: encoding_rs
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: rustix
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: cc
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: gix
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-13 15:30:17 +09:00
38 changed files with 566 additions and 278 deletions

632
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -41,7 +41,7 @@ package.helix-term.opt-level = 2
tree-sitter = { version = "0.22" }
nucleo = "0.5.0"
slotmap = "1.0.7"
thiserror = "1.0"
thiserror = "2.0"
[workspace.package]
version = "24.7.0"

View File

@ -29,7 +29,7 @@ unicode-segmentation = "1.12"
# For now lets lock the version to avoid rendering glitches
# when installing without `--locked`
unicode-width = "=0.1.12"
unicode-general-category = "0.6"
unicode-general-category = "1.0"
slotmap.workspace = true
tree-sitter.workspace = true
once_cell = "1.20"
@ -39,7 +39,7 @@ bitflags = "2.6"
ahash = "0.8.11"
hashbrown = { version = "0.14.5", features = ["raw"] }
dunce = "1.0"
url = "2.5.0"
url = "2.5.3"
log = "0.4"
serde = { version = "1.0", features = ["derive"] }

View File

@ -30,7 +30,7 @@ log = "0.4"
# cloning/compiling tree-sitter grammars
cc = { version = "1" }
threadpool = { version = "1.0" }
tempfile = "3.13.0"
tempfile = "3.14.0"
dunce = "1.0.5"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]

View File

@ -22,10 +22,10 @@ license = "MIT"
[dependencies]
bitflags = "2.6.0"
serde = { version = "1.0.209", features = ["derive"] }
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.132"
serde_repr = "0.1"
url = {version = "2.0.0", features = ["serde"]}
url = {version = "2.5.3", features = ["serde"]}
[features]
default = []

View File

@ -26,7 +26,7 @@ globset = "0.4.15"
log = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.40", features = ["rt", "rt-multi-thread", "io-util", "io-std", "time", "process", "macros", "fs", "parking_lot", "sync"] }
tokio = { version = "1.41", features = ["rt", "rt-multi-thread", "io-util", "io-std", "time", "process", "macros", "fs", "parking_lot", "sync"] }
tokio-stream = "0.1.15"
parking_lot = "0.12.3"
arc-swap = "1"

View File

@ -15,7 +15,7 @@ homepage.workspace = true
dunce = "1.0"
etcetera = "0.8"
ropey = { version = "1.6.1", default-features = false }
which = "6.0"
which = "7.0"
regex-cursor = "0.1.4"
bitflags = "2.6"
@ -26,4 +26,4 @@ windows-sys = { version = "0.59", features = ["Win32_Foundation", "Win32_Securit
rustix = { version = "0.38", features = ["fs"] }
[dev-dependencies]
tempfile = "3.13"
tempfile = "3.14"

View File

@ -56,11 +56,11 @@ ignore = "0.4"
pulldown-cmark = { version = "0.12", default-features = false }
# file type detection
content_inspector = "0.2.4"
thiserror = "1.0"
thiserror.workspace = true
# opening URLs
open = "5.3.0"
url = "2.5.2"
url = "2.5.3"
# config
toml = "0.8"
@ -74,7 +74,7 @@ grep-searcher = "0.1.14"
[target.'cfg(not(windows))'.dependencies] # https://github.com/vorner/signal-hook/issues/100
signal-hook-tokio = { version = "0.3", features = ["futures-v0_3"] }
libc = "0.2.161"
libc = "0.2.162"
[target.'cfg(target_os = "macos")'.dependencies]
crossterm = { version = "0.28", features = ["event-stream", "use-dev-tty", "libc"] }
@ -85,5 +85,5 @@ helix-loader = { path = "../helix-loader" }
[dev-dependencies]
smallvec = "1.13"
indoc = "2.0.5"
tempfile = "3.13.0"
tempfile = "3.14.0"
same-file = "1.0.1"

View File

@ -19,7 +19,7 @@ tokio = { version = "1", features = ["rt", "rt-multi-thread", "time", "sync", "p
parking_lot = "0.12"
arc-swap = { version = "1.7.1" }
gix = { version = "0.66.0", features = ["attributes", "status"], default-features = false, optional = true }
gix = { version = "0.67.0", features = ["attributes", "status"], default-features = false, optional = true }
imara-diff = "0.1.7"
anyhow = "1"
@ -29,4 +29,4 @@ log = "0.4"
git = ["gix"]
[dev-dependencies]
tempfile = "3.13"
tempfile = "3.14"

View File

@ -198,7 +198,7 @@ fn find_file_in_commit(repo: &Repository, commit: &Commit, file: &Path) -> Resul
let rel_path = file.strip_prefix(repo_dir)?;
let tree = commit.tree()?;
let tree_entry = tree
.lookup_entry_by_path(rel_path, &mut Vec::new())?
.lookup_entry_by_path(rel_path)?
.context("file is untracked")?;
match tree_entry.mode().kind() {
// not a file, everything is new, do not show diff

View File

@ -28,11 +28,11 @@ bitflags = "2.6"
anyhow = "1"
crossterm = { version = "0.28", optional = true }
tempfile = "3.13"
tempfile = "3.14"
# Conversion traits
once_cell = "1.20"
url = "2.5.2"
url = "2.5.3"
arc-swap = { version = "1.7.1" }

View File

@ -0,0 +1,26 @@
Copyright © WHATWG (Apple, Google, Mozilla, Microsoft).
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py
@ -7185,13 +7184,13 @@ Instead, please regenerate using generate-encoding-data.py
χ
ψ
ω
@ -7204,14 +7203,14 @@ Instead, please regenerate using generate-encoding-data.py
@ -23778,7 +23777,7 @@ Instead, please regenerate using generate-encoding-data.py
@ -23786,19 +23785,19 @@ Instead, please regenerate using generate-encoding-data.py
@ -23815,7 +23814,7 @@ Instead, please regenerate using generate-encoding-data.py
@ -23832,7 +23831,7 @@ Instead, please regenerate using generate-encoding-data.py
@ -23848,7 +23847,7 @@ Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py
@ -7184,13 +7183,13 @@ Instead, please regenerate using generate-encoding-data.py
χ
ψ
ω
@ -7203,14 +7202,14 @@ Instead, please regenerate using generate-encoding-data.py
@ -23777,7 +23776,7 @@ Instead, please regenerate using generate-encoding-data.py
@ -23785,19 +23784,19 @@ Instead, please regenerate using generate-encoding-data.py
@ -23814,7 +23813,7 @@ Instead, please regenerate using generate-encoding-data.py
@ -23831,7 +23830,7 @@ Instead, please regenerate using generate-encoding-data.py
@ -23847,7 +23846,7 @@ Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py

View File

@ -1,5 +1,4 @@
Any copyright to the test code below this comment is dedicated to the
Public Domain. http://creativecommons.org/publicdomain/zero/1.0/
Generated from WHATWG indexes.json; see LICENSE-WHATWG.
This is a generated file. Please do not edit.
Instead, please regenerate using generate-encoding-data.py