Skip to content

Commit

Permalink
bump to new vortex
Browse files Browse the repository at this point in the history
  • Loading branch information
a10y committed Dec 20, 2024
1 parent c4b30a8 commit 1d6de80
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 31 deletions.
52 changes: 24 additions & 28 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ humansize = "2.1.3"
reqwest = "0.12"

# Needed for running Vortex operations
vortex = { git = "https://github.com/spiraldb/vortex.git", rev = "e64ab4a" }
vortex = { git = "https://github.com/spiraldb/vortex.git", rev = "1777c2f" }

[features]
default = ["web"]
Expand Down
2 changes: 1 addition & 1 deletion src/components/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ pub mod array;
pub mod array_info;
pub mod breadcrumb;
pub mod dtype;
pub mod stats;
pub mod sample_files;
pub mod stats;

#[component]
pub fn AppHeader() -> Element {
Expand Down
2 changes: 2 additions & 0 deletions src/file_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use dioxus::prelude::*;

use crate::HistoryStack;
use bytes::Bytes;
use vortex::buffer::Buffer;
use vortex::file::{LayoutContext, LayoutDeserializer, VortexReadBuilder};
use vortex::sampling_compressor::ALL_ENCODINGS_CONTEXT;

Expand All @@ -11,6 +12,7 @@ pub async fn read_file(
mut read_error: Signal<Option<String>>,
mut history_stack: Signal<HistoryStack>,
) {
let contents = Buffer::from(contents);
// Create a new VortexFileReader and send the data to it.
let layout_serde = LayoutDeserializer::new(
ALL_ENCODINGS_CONTEXT.clone(),
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ fn Home() -> Element {
if let Some(file_engine) = evt.files() {
read_files(file_engine).await;
}
}
},
}
SampleFiles { file_name, read_error, history_stack }
} else {
Expand Down

0 comments on commit 1d6de80

Please sign in to comment.