Crates.io | dusk-node |
lib.rs | dusk-node |
version | 1.3.0 |
source | src |
created_at | 2025-01-17 09:44:47.269446+00 |
updated_at | 2025-04-17 13:47:58.307788+00 |
description | An implementation of dusk-blockchain node in pure Rust |
homepage | |
repository | https://github.com/dusk-network/rusk |
max_upload_size | |
id | 1520474 |
size | 415,456 |
The Dusk Node functionality crate.
The current archive makes use of SQLite and SQLx in offline mode.
Installing sqlx-cli with cargo install sqlx-cli --features openssl-vendored
If the queries don't change, nothing needs to be done.
If queries do change, you need to set a database env var and update the offline .sqlx queries folder.
This can be done through:
export DATABASE_URL=sqlite:///tmp/temp.sqlite3
cargo sqlx prepare -- --all-targets --all-features
In order for the sqlx::query
macro to successfully expand during compile time checks, a database must exist beforehand if not run in offline mode.
This can be done through:
DATABASE_URL=sqlite:///tmp/temp.sqlite3
sqlx database create
sqlx migrate run
NB: You need to be in the /node folder of this project for sqlx to detect the migrations folder