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 https://github.com/NaluScientific/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.9-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a24a0e18e00ae172795b7a75029cab8a5f94c52d19f5ac67715ede25784b2479 |
|
MD5 | 683a1fd1dbb37e7d9d83b6242abc40c8 |
|
BLAKE2b-256 | 841dce97ca474573885f5cce3955e8c2d1c3f653796cf8a7134058360dd45c44 |
Hashes for naludaq_rs-0.1.9-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b319fff956f152f185ecd3b745386c430b2e16c20a74667bc93af2f7526269be |
|
MD5 | a7f92810a8fa28e03f4ffda8341fabaa |
|
BLAKE2b-256 | d8bda3fecd6c5ecda13bec22fa8c8e9cacca9778732ce0c11e9caef71f666cda |
Hashes for naludaq_rs-0.1.9-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a647e5fe7ff61f052d3ce27ae91596593cb442378f65dedf316132e691129f4 |
|
MD5 | 4f7a3e256646f768c0898ec47ff5cb14 |
|
BLAKE2b-256 | 1e5e38988a06d8d6c25480e338b5228fcee607c8f4983b662ffa08f2868b5dde |
Hashes for naludaq_rs-0.1.9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a48be557edcfd9d1a757ebd2fab55dd548ec84fa26b7544a480b83fcf88c46bb |
|
MD5 | 20f47706555bf645363fc7da30b5c40b |
|
BLAKE2b-256 | e848d98856f5242639c64b091efb8d245796a5b612a042277f9b7ab6b1616d09 |
Hashes for naludaq_rs-0.1.9-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58e9b92adefc1f4bd118680f856b1056bf6aab991e991f8d0901d994cd9e8f89 |
|
MD5 | dab87a68cf7a01709720359205a7d325 |
|
BLAKE2b-256 | 478bac3b9beba99617813bf1d3d24f4039417a2f7a5f30df83bd610e56bb857d |
Hashes for naludaq_rs-0.1.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd0452650aa4fa46614dc20a68af64027ede2a7cc4a278776830a461020cb479 |
|
MD5 | d30f8bccc681b701c8a1a517e5855c31 |
|
BLAKE2b-256 | e937b51deb4d0945f5e58d2efabb87dce15b8542d0b465fbca28b9c845571bf7 |
Hashes for naludaq_rs-0.1.9-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9af3ef76c30ceea8d38e9cc9f51eda047b0e9acfddf412a38def1605bbc36d83 |
|
MD5 | 18491e0f2647630cde2f235e724c06e7 |
|
BLAKE2b-256 | de7f899788757db47077cbd2073f041abffafc6dec912e08191e8fe3396e4214 |
Hashes for naludaq_rs-0.1.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbfa38f27acf093db54a1b27f55ff3ab7084105b07217c774048919ecad2e5c3 |
|
MD5 | a214d12a9542167bcc6896323bd0e92e |
|
BLAKE2b-256 | addf680fd8b37833cb394b8be8d9abcd94d310abc481102b368c4417494ddeff |
Hashes for naludaq_rs-0.1.9-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ca6f3b7c534b0ce5749d5a4d52970107fd00ee1fbea0d2d5b2479a9005cab82 |
|
MD5 | 3366fe7bec4a2e0d2016655198668717 |
|
BLAKE2b-256 | 6436f9209fb01ec712773f0d23f719d32a1eec799712a5be6240d2437b9b61dd |
Hashes for naludaq_rs-0.1.9-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03735755f3a193fe087564ebfa7d14899c410bac54fa77f0ae4fed604702ede7 |
|
MD5 | 70d7d42ba7b375c4f5b1c982863a70b9 |
|
BLAKE2b-256 | dd951a33a199ae69aed3298fdf775a9d26ebdfdf6928602b8170ccaadbf2bc31 |
Hashes for naludaq_rs-0.1.9-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f70493a459bff1204ed42e9951b80fcf812957f9193b276259658fd7293f66f |
|
MD5 | e3aba963dc3f8f1d813863fc9340b9cf |
|
BLAKE2b-256 | 869d150d51489fc68dd334ad25908828de34875753bf523549fa74bac1e27bbb |
Hashes for naludaq_rs-0.1.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5d24a0cd56ee256b4be9688db6030871763e4e90c0ac9d3d0c561b7298e9e07 |
|
MD5 | 1cfad06398e881c09cdd4020748da5bf |
|
BLAKE2b-256 | 229483dea6c6533a9047a5e572b64f72417828f4f3273beab7f6cccf7cdbaf2d |
Hashes for naludaq_rs-0.1.9-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 203d205876ea4b2e815279d30d0a070fae5573fdbbfd08a96661c5894295bf0f |
|
MD5 | d04a66c575ea8e1382dd5bee5b4feaef |
|
BLAKE2b-256 | db67a79cd4e3e9b6347a5272f2802a80d0ffc916cf056861a413a3a54df3edb9 |
Hashes for naludaq_rs-0.1.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 820520f5e4d99e321967d6749bc33405a8861236b41d6af841b7361985f9f7bb |
|
MD5 | 7be19b5040ada90a6c06e680cddbea4b |
|
BLAKE2b-256 | d07a621d6eec9ccb7711b1040c2505e8ce95b9a7bb9eb4bb7b9340e9a3601e6e |