Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
24 changes: 4 additions & 20 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 @@ -43,7 +43,7 @@ serde_path_to_error = "0.1.16"
simd-json = "0.17.0"
thiserror = "1.0"
tokio = { version = "1.47.1" }
tokio-fs-ext = "0.6.5"
tokio-fs-ext = "0.6.9"
toml = "0.8"
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", features = ["env-filter", "fmt"] }
Expand Down
4 changes: 2 additions & 2 deletions crates/utoo-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ flate2 = "1.1.5"
futures = { workspace = true }
js-sys = "0.3.83"
oneshot = "0.1.11"
opfs-project = "0.1.15"
opfs-project = "0.1.16"
petgraph = "0.6"
reqwest = { version = "0.12.22", default-features = false, features = ["json"] }
rustc-hash = { workspace = true }
Expand All @@ -38,7 +38,7 @@ serde-wasm-bindgen = "0.6.5"
serde_json = { workspace = true }
tar = "0.4.44"
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "time"] }
tokio-fs-ext = { version = "0.6.5", features = ["opfs_offload", "opfs_tracing", "opfs_watch"] }
tokio-fs-ext = { workspace = true, features = ["opfs_offload", "opfs_tracing", "opfs_watch"] }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
tracing-web = "0.1.3"
Expand Down
4 changes: 3 additions & 1 deletion crates/utoo-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ fn init_pack() {

#[wasm_bindgen(js_name = "initLogFilter")]
pub fn init_log_filter(mut filter: String) {
const DEFAULT_LOG_FILTER: &str = "utoo_wasm=info,pack_api=info,pack_core=info";

if filter.is_empty() {
filter.push_str("pack_napi=info,pack_api=info,pack_core=info")
filter.push_str(DEFAULT_LOG_FILTER)
}
TRACING_INIT.call_once(|| {
let filter_str = filter.clone();
Expand Down
2 changes: 1 addition & 1 deletion next.js
20 changes: 10 additions & 10 deletions packages/utoo-web/src/utoo/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ export function workerCreated(worker_id: number): void;
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;

export interface InitOutput {
readonly registerWorkerScheduler: (a: any, b: any) => void;
readonly workerCreated: (a: number) => void;
readonly initLogFilter: (a: number, b: number) => void;
readonly init_pack: () => void;
readonly __wbg_direntry_free: (a: number, b: number) => void;
readonly __wbg_get_direntry_name: (a: number) => [number, number];
readonly __wbg_get_direntry_type: (a: number) => number;
Expand Down Expand Up @@ -181,10 +185,6 @@ export interface InitOutput {
readonly project_write: (a: number, b: number, c: any) => any;
readonly project_writeString: (a: number, b: number, c: number, d: number) => any;
readonly project_writeSync: (a: number, b: number, c: any) => [number, number];
readonly initLogFilter: (a: number, b: number) => void;
readonly init_pack: () => void;
readonly registerWorkerScheduler: (a: any, b: any) => void;
readonly workerCreated: (a: number) => void;
readonly rust_mi_get_default_heap: () => number;
readonly rust_mi_get_thread_id: () => number;
readonly rust_mi_set_default_heap: (a: number) => void;
Expand All @@ -209,18 +209,18 @@ export interface InitOutput {
readonly wasmtaskmessage_data: (a: number) => any;
readonly __wbg_createsyncaccesshandleoptions_free: (a: number, b: number) => void;
readonly wasm_thread_entry_point: (a: number) => void;
readonly wasm_bindgen__convert__closures_____invoke__h1fc3e28920f04101: (a: number, b: number) => void;
readonly wasm_bindgen__closure__destroy__h697219d9b2418ea3: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures________invoke__hc572a1bf691b2f02: (a: number, b: number, c: any) => void;
readonly wasm_bindgen__closure__destroy__h79b136ee1664aaaa: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures_____invoke__h1fc3e28920f04101: (a: number, b: number) => void;
readonly wasm_bindgen__closure__destroy__h697219d9b2418ea3: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures_____invoke__h12ad3f2e11ef8f1f: (a: number, b: number, c: any) => void;
readonly wasm_bindgen__closure__destroy__ha0c175f92395ef9a: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures_____invoke__h8bdf724950a20526: (a: number, b: number, c: any) => void;
readonly wasm_bindgen__closure__destroy__h33b24a5c45343d26: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures_____invoke__hce460cf0a813c454: (a: number, b: number) => void;
readonly wasm_bindgen__closure__destroy__hc14e8607e23cebd7: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures_____invoke__h05951ccee93604a9: (a: number, b: number, c: any) => void;
readonly wasm_bindgen__closure__destroy__hc95bb6053e4d238d: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures_____invoke__hbd325ba31743329c: (a: number, b: number, c: any) => void;
readonly wasm_bindgen__closure__destroy__h87d652f0494817e1: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures_____invoke__h12ad3f2e11ef8f1f: (a: number, b: number, c: any) => void;
readonly wasm_bindgen__closure__destroy__ha0c175f92395ef9a: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures_____invoke__heb9448f3005917b6: (a: number, b: number, c: any, d: any) => void;
readonly memory: WebAssembly.Memory;
readonly __wbindgen_malloc: (a: number, b: number) => number;
Expand Down
Loading