mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-26 11:53:31 +03:00
move redb & rusqlite deps into Cargo.toml
This commit is contained in:
parent
fd4a8476f8
commit
a409723edc
@ -7,10 +7,7 @@ Last updated: 10/16/23
|
||||
# Clone the repo.
|
||||
|
||||
git clone git@github.com:uqbar-dao/uqbar.git
|
||||
git clone git@github.com:uqbar-dao/redb.git
|
||||
git clone git@github.com:uqbar-dao/rusqlite.git
|
||||
|
||||
Make sure the two repos are next to each other in your directory structure.
|
||||
|
||||
# Get some stuff so we can build wasm.
|
||||
|
||||
@ -22,13 +19,17 @@ rustup target add wasm32-wasi --toolchain nightly
|
||||
cargo install cargo-wasi
|
||||
cargo install --git https://github.com/bytecodealliance/cargo-component --locked cargo-component
|
||||
|
||||
|
||||
# Initialize submodules, in particular the register app
|
||||
|
||||
git submodule update --init --recursive
|
||||
# Build the register app
|
||||
cd src/register && ./build_all.sh && cd ../..
|
||||
|
||||
|
||||
# Build the runtime, along with a number of booted-at-startup WASM modules including terminal and key_value
|
||||
# OPTIONAL: --release flag
|
||||
|
||||
cargo +nightly build --release
|
||||
```
|
||||
|
||||
|
1
modules/key_value/key_value_worker/Cargo.lock
generated
1
modules/key_value/key_value_worker/Cargo.lock
generated
@ -330,6 +330,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "redb"
|
||||
version = "1.2.0"
|
||||
source = "git+https://github.com/uqbar-dao/redb?rev=8e192d9#8e192d945295e1ddd331003bae215cd8d1564c4b"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"pyo3-build-config",
|
||||
|
@ -14,8 +14,8 @@ lto = true
|
||||
anyhow = "1.0"
|
||||
bincode = "1.3.3"
|
||||
cargo-component-bindings = { git = "https://github.com/bytecodealliance/cargo-component" }
|
||||
redb = { path = "../../../../redb" }
|
||||
serde = {version = "1.0", features = ["derive"] }
|
||||
redb = { git = "https://github.com/uqbar-dao/redb", rev = "8e192d9" }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
thiserror = "1.0"
|
||||
wit-bindgen = { version = "0.11.0", default_features = false }
|
||||
|
2
modules/sqlite/sqlite_worker/Cargo.lock
generated
2
modules/sqlite/sqlite_worker/Cargo.lock
generated
@ -200,6 +200,7 @@ checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3"
|
||||
[[package]]
|
||||
name = "libsqlite3-sys"
|
||||
version = "0.26.0"
|
||||
source = "git+https://github.com/uqbar-dao/rusqlite?rev=fa6ed84#fa6ed843b65f7dd78d53a1b74c7e5095d71c2bd4"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"pkg-config",
|
||||
@ -305,6 +306,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "rusqlite"
|
||||
version = "0.29.0"
|
||||
source = "git+https://github.com/uqbar-dao/rusqlite?rev=fa6ed84#fa6ed843b65f7dd78d53a1b74c7e5095d71c2bd4"
|
||||
dependencies = [
|
||||
"bitflags 2.4.0",
|
||||
"fallible-iterator",
|
||||
|
@ -15,7 +15,7 @@ anyhow = "1.0"
|
||||
bincode = "1.3.3"
|
||||
cargo-component-bindings = { git = "https://github.com/bytecodealliance/cargo-component" }
|
||||
rmp-serde = "1.1"
|
||||
rusqlite = { path = "../../../../rusqlite/", features = ["bundled", "wasm32-wasi-vfs"] }
|
||||
rusqlite = { git = "https://github.com/uqbar-dao/rusqlite", rev = "fa6ed84", features = ["bundled", "wasm32-wasi-vfs"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
thiserror = "1.0"
|
||||
|
Loading…
Reference in New Issue
Block a user