From 4dc26a8e5a824c882b51c790e1d5242aaead2909 Mon Sep 17 00:00:00 2001 From: Ziyang Hu Date: Tue, 15 Nov 2022 16:30:20 +0800 Subject: [PATCH] wasm --- Cargo.lock | 3 +++ cozo-core/Cargo.toml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 51a181a2..ea0b6e71 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1048,8 +1048,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" dependencies = [ "cfg-if 1.0.0", + "js-sys", "libc", "wasi 0.11.0+wasi-snapshot-preview1", + "wasm-bindgen", ] [[package]] @@ -3286,6 +3288,7 @@ dependencies = [ "atomic", "getrandom 0.2.8", "serde", + "wasm-bindgen", ] [[package]] diff --git a/cozo-core/Cargo.toml b/cozo-core/Cargo.toml index a75cb6c8..987237c4 100644 --- a/cozo-core/Cargo.toml +++ b/cozo-core/Cargo.toml @@ -35,6 +35,8 @@ requests = ["dep:minreq"] jemalloc = ["dep:tikv-jemallocator-global", "cozorocks?/jemalloc"] ## Enables io-uring option for the RocksDB storage io-uring = ["cozorocks?/io-uring"] +## Enables the WASM target +wasm = ["uuid/js"] #! The following features are highly experimental: