Development
Setup
Install Rust
This will automatically install the correct version of rust
Install pre-commit hooks
Install nextest
Tests
Run the tests
Trying things out
Make sure you have make cmake and autotools installed, for the vendored
Cap'n Proto compiler.
Run a node
This starts a dusk_node server, which listens on tcp port 9090, on every
address (it uses the Dusk Nix impl by default). The address is built in - see
Run a dusk node.
Run example Dusk CLI
Try out Dusk's Python API
Python
import dusk
d = dusk.Dusk('127.0.0.1', 9090)
# get the currently running processes using the `ps` program and print them.
print(list(d.sh('ps')))
Using the framework
The basic flow of using the Dusk framework is as follows:
- Write your own dusk programs and or dusk impl using the dusk crates found in
/dusk - Copy over the example deliverable artifacts in
/artifacts - Make them your own by adding your programs to them and or changing the underlying impl that
dusk_nodelinks - Compile and deliver