SciWIn Client (s4n)
To build SciWIn Client locally the repository needs to be cloned from GitHub:
Cloning the repository
Section titled “Cloning the repository”# Clone the repositorygit clone https://github.com/fairagro/sciwin
# Navigate to the project directorycd sciwinFurthermore a Rust environment needs to be set up.
Setting up Rust
Section titled “Setting up Rust”Use the following Bash command to install Rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shUse the Rustup installer from the Rust website.
For WSL2 the following command can be used.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shIf VSCode is used as development environment the rust-analyzer extension needs to be installed.
Build and test
Section titled “Build and test”SciWIn Client can then be built using the cargo commandline tool
cargo buildTo build & run, cargo run can be used followed by -- and the commands and parameters of SciWIn Client, e.g. cargo run -- create python echo.py.
For linting, clippy is used, matching what CI runs: cargo clippy --all-targets --all-features --workspace.
Unit and integration tests are run with cargo nextest (matching CI): cargo nextest run --workspace. If logging to stdout needs to be displayed the no-capture flag can be set: cargo nextest run --workspace --nocapture.