Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d55c48f
feat: new rust API and binary
branchseer Nov 20, 2025
8f733a7
async trait
branchseer Nov 21, 2025
0682eb0
wip
branchseer Nov 23, 2025
1f63250
update
branchseer Nov 23, 2025
00c3b9d
update
branchseer Nov 30, 2025
d2df392
wip
branchseer Nov 30, 2025
9607335
rename TaskCache to CommandCache
branchseer Nov 30, 2025
55316db
update
branchseer Dec 2, 2025
96602a1
add TaskDependencyType to task graph
branchseer Dec 3, 2025
44b90a1
init vite_task_graph
branchseer Dec 3, 2025
6c6ceaf
add tests
branchseer Dec 3, 2025
0a4071d
update tests
branchseer Dec 3, 2025
9747cda
update
branchseer Dec 4, 2025
df6886f
rename get_package_graph to discover_package_graph
branchseer Dec 4, 2025
f9dcbfe
add load_package_graph
branchseer Dec 4, 2025
24b2e41
update
branchseer Dec 5, 2025
7502c2e
fix recursive call
branchseer Dec 5, 2025
895a26b
add snap test
branchseer Dec 5, 2025
49bf5e6
update
branchseer Dec 5, 2025
15d2ec5
rename vite-task.json to vite.config.json
branchseer Dec 5, 2025
c3c5d6c
cacheable -> cache
branchseer Dec 5, 2025
d5591b2
update snapshots
branchseer Dec 5, 2025
e2bb9d1
remove unused files
branchseer Dec 5, 2025
f4f7c50
update
branchseer Dec 5, 2025
56896f6
revert unfinished changes to vite_task
branchseer Dec 5, 2025
1c3b24e
update lock file
branchseer Dec 5, 2025
68b1341
get_package_graph -> discover_package_graph
branchseer Dec 5, 2025
979cedb
remove tests based on fixtures from vite_task
branchseer Dec 5, 2025
b7ee7ae
fix typo
branchseer Dec 5, 2025
352b724
remove unnecessary files
branchseer Dec 5, 2025
73e9875
cargo shear fix
branchseer Dec 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 114 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ color-eyre = "0.6.5"
compact_str = "0.9.0"
const_format = "0.2.34"
constcat = "0.6.1"
copy_dir = "0.1.3"
crossterm = { version = "0.29.0", features = ["event-stream"] }
csv-async = { version = "1.3.1", features = ["tokio"] }
ctor = "0.6"
Expand All @@ -70,6 +71,7 @@ fspy_test_utils = { path = "crates/fspy_test_utils" }
futures = "0.3.31"
futures-core = "0.3.31"
futures-util = "0.3.31"
insta = "1.44.3"
itertools = "0.14.0"
libc = "0.2.172"
memmap2 = "0.9.7"
Expand All @@ -95,7 +97,7 @@ serde_yml = "0.0.12"
sha2 = "0.10.9"
shared_memory = "0.12.4"
shell-escape = "0.1.5"
smallvec = { version = "2.0.0-alpha.11", features = ["std"] }
smallvec = { version = "2.0.0-alpha.12", features = ["std"] }
stackalloc = "1.2.1"
supports-color = "3.0.1"
syscalls = { version = "0.6.18", default-features = false }
Expand All @@ -113,6 +115,7 @@ tree-sitter-bash = "0.23.1"
tui-term = "0.2.0"
twox-hash = "2.1.1"
uuid = "1.18.1"
vec1 = "1.12.1"
vite_glob = { path = "crates/vite_glob" }
vite_path = { path = "crates/vite_path" }
vite_str = { path = "crates/vite_str" }
Expand Down
9 changes: 8 additions & 1 deletion crates/vite_path/src/absolute.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::{
ffi::OsStr,
fmt::Display,
hash::Hash,
ops::Deref,
path::{Path, PathBuf},
sync::Arc,
Expand All @@ -11,7 +12,7 @@ use ref_cast::{RefCastCustom, ref_cast_custom};
use crate::relative::{FromPathError, InvalidPathDataError, RelativePathBuf};

/// A path that is guaranteed to be absolute
#[derive(RefCastCustom, Debug, PartialEq, Eq)]
#[derive(RefCastCustom, Debug, PartialEq, Eq, PartialOrd, Ord)]
#[repr(transparent)]
pub struct AbsolutePath(Path);
impl AsRef<Self> for AbsolutePath {
Expand All @@ -31,6 +32,12 @@ impl PartialEq<AbsolutePathBuf> for &AbsolutePath {
}
}

impl Hash for AbsolutePath {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.0.hash(state);
}
}

impl AbsolutePath {
/// Creates a [`AbsolutePath`] if the give path is absolute.
pub fn new<P: AsRef<Path> + ?Sized>(path: &P) -> Option<&Self> {
Expand Down
Loading