Rust backend for NaluDAQ
Project description
NaluDAQ_rs
Rust backend for NaluDaq.
Setup
Make sure the Rust toolchain is installed.
Clone the repository to a suitable location:
$ git clone http://gitlab.naluscientific.com/nalusoft/prototypes/naludaq_rs.git
Done!
Building the backend for python
pip install maturin
maturin build
Building the Backend
The backend is easy to build:
$ cd naludaq_rs
$ cargo build --release
Developers may ommit the --release
flag for unoptimized builds.
Building for RPI4
Building using docker:
docker build . -t cc/rpi4
to make the container, the build the app with:
docker run --rm -v ${pwd}:/app cc/rpi4
Running the Backend
To run the backend, run the following command:
$ cargo run --release -- [<ROOT>] [--addr <ADDR>] [-d | --debug] [--api]
Where the arguments are as follows:
<ROOT>
is the root directory to run the server in. By default, it is the current working directory of the terminal it was run from.--addr <ADDR>
is the address to bind the server to in the formatIP:PORT
. If unspecified, the server is bound to an open port on the loopback address.-d | --debug
shows additional debug messages.--api
will open the Swagger UI in the system browser.
Documentation
The documentation can be built using the following command:
$ cargo doc --document-private-items --no-deps
The API
NaluDAQ_rs is controlled through its REST API over HTTP. This allows it to be controlled from any machine connected to a network.
The backend can be controlled on the fly via Swagger. Use the --api
flag when starting the backend to display the Swagger UI.
Alternatively, the (non-interactive) Swagger UI may be viewed without the backend by running the following command:
$ cargo run --bin api -- [--output OUTPUT_FILE]
If the --output
argument is provided, the OpenAPI JSON data describing
the API is written to the file and the program will immediately exit.
Developers
Profiling
Use the build profile called `release-with-debug for building release mode with debug symbols.
$ cargo build --profile release-with-debug
On Windows machines with Intel processors you can use Intel VTune to profile the backend.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for naludaq_rs-0.1.8-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21a42b0bca1be7e17d70eb61f39e8491a121c698b37ce794cec9f432e7bccd8f |
|
MD5 | 95ce24a7e4f8c313fc71c1fdb3fb5176 |
|
BLAKE2b-256 | fa08fe8766b43a00610cde4dbf76c45ee760367b8638743e41019de012dbdf7d |
Hashes for naludaq_rs-0.1.8-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d149a04972147f86bde2a7558824563ebb4f64b1e03e2aaac732ca2b41037bb |
|
MD5 | 65920802dd925e9a66e41b1e32d64f24 |
|
BLAKE2b-256 | 3ef8c598f6f0a7471190c9beedd8171261cd363b1dd376d944254a2d769f4996 |
Hashes for naludaq_rs-0.1.8-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b07a9bcce14b12b7096932f7932fc9c9909fe8396b427993fc7508e9ed67a2d1 |
|
MD5 | ac161054b3a9bc52a271986fe28a1680 |
|
BLAKE2b-256 | 471f768c2846b6e16498121371609360d97e1ed73ff756b0e2ea860a2742e584 |
Hashes for naludaq_rs-0.1.8-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 678ef1bcc9e28d10b3ca32da1e83bceb277b0ed345896c621d917524a098757b |
|
MD5 | 7cc06e34441672c096764c2a31acb89c |
|
BLAKE2b-256 | 7a3c84294e425fe4c82a4365f387a60ec6bb7206a5a6b79fcbf12f8cd74fdaac |
Hashes for naludaq_rs-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95ee552243478221bd2273d7234b0d41e137fb5c1a0e62863364783f664ab12f |
|
MD5 | d4c1ecc84a6cd01ae9b9ab8a7bae74b9 |
|
BLAKE2b-256 | 6a8e6697928f71024afe669c85e1c6e60621edde4e26dd79a0d384d17f937cc1 |
Hashes for naludaq_rs-0.1.8-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9426eec7a75c0042401febce32780306c51b917313e013ac2ad250db0264a2d6 |
|
MD5 | 9b2db7e7b42a61903290bd85a3170aea |
|
BLAKE2b-256 | 8bf07d2c10069b01d54ed1c2e8289bd3bea13eae8281dd3d4068db0f292c3bee |
Hashes for naludaq_rs-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f49b3d5820e50a41420b4a87091f9f70b190af9a1c1750b2257a19110c5eb911 |
|
MD5 | 17ab8feee2369f531c650e13d60d069b |
|
BLAKE2b-256 | 5c8151051b63d231c273de74d7707d282f5aca6fe441c069c5ec9b7637efa450 |
Hashes for naludaq_rs-0.1.8-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1eb53e9868eddbabc2fce04b422f1600580781e6688b1ea637c1e9647dd7514b |
|
MD5 | 9f1a1f401a750096db879c96305f058c |
|
BLAKE2b-256 | 2277518850f04071784a90a0119c39c4e98ff5e661761f792123610be4ff94b4 |
Hashes for naludaq_rs-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9be393df6612e692e828452880f490cf1c5353454051cca2f699194171b9f480 |
|
MD5 | 6d56d481b6db936585b1a30d0a6db582 |
|
BLAKE2b-256 | eb196949ad2279f9622e582e8fbe1e9f87bf18196afd5f8f262c0681d61d13cc |
Hashes for naludaq_rs-0.1.8-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6596c60b282dae738669930988fac913f2d8519677d69344b0e0ee7dd94a6819 |
|
MD5 | 428b8d71e8b0f150ce762a2a9e82ff7c |
|
BLAKE2b-256 | b88965b27cb1697c01e3fc07f22f13e18f9b7b1b41d171fe80639c7fd8f5ffe5 |
Hashes for naludaq_rs-0.1.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e42780823f46e4f10fddf6f98bd4c051b43ab62ad70994b2843c58a4ba3b81c |
|
MD5 | 654a10dca32d6f57bca972eafbc48a55 |
|
BLAKE2b-256 | 0fa0969d4653ba543c03871bddd7434ae23659fb28fb430736e1502872e3c884 |
Hashes for naludaq_rs-0.1.8-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f9c568230831110324c456e29500bbfb53af1e7adf503c9b1e11b0a4a37c278 |
|
MD5 | 0802c5b4f29339c40bdef9cffbe953f8 |
|
BLAKE2b-256 | c230752f437800d2fd384b531a94002faae930af628a0603a9b2a7c08c406c55 |
Hashes for naludaq_rs-0.1.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26d97f3b708b91441412dd3825fa60cb8465c9263049a24e895e6b6c681a0d6d |
|
MD5 | a3a29986d46fc7f1ac86dc81810c8535 |
|
BLAKE2b-256 | 08805213318d2865920ee47d65f28b6f744a402de51d145abbe4e0698c0d7054 |