Skip to content
Merged
Changes from 1 commit
Commits
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
5 changes: 5 additions & 0 deletions vortex/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ impl VortexSessionDefault for VortexSession {

#[cfg(feature = "files")]
let session = {
// `MultiFileSession` holds a `moka` cache whose clock reads `std::time::Instant::now()`
// when constructed. `Instant` is unsupported on `wasm32` and panics with "time not
// implemented on this platform". Multi-file scanning is not available on wasm anyway, so
// only register this session variable on non-wasm targets.
#[cfg(not(target_arch = "wasm32"))]
Comment thread
robert3005 marked this conversation as resolved.
Outdated
let session = session.with::<file::multi::MultiFileSession>();
file::register_default_encodings(&session);
session
Expand Down
Loading