This is currently an early implementation and should not be used in production settings. This is NOT an official ONT project.
A rust implementation of the minknow_api client for interacting with MinKNOW. More information on MinKNOW and minknow_api client, see the minknow_api python client repository.
Note that this library attempts to match the interfaces of the minknow_api python client, however, in some cases, additional interfaces have been added to simplify client usage.
Prequisites:
- Rust
- Cargo
- MinKNOW >=22.10.7 installed and running locally
End to end tests associated with the minknow-api-rust client currently interact directly with a running minknow instance to create simulated devices. The following setup must be performed prior to running tests:
- Create a developer API token by opening the MinKNOW desktop application and navigating to 'Host Settings' -> 'API Access Tokens'.
- An environment variable must reference this token, run
export MINKNOW_API_TEST_TOKEN={created_token} - An environment variable must reference the self-signed certificate provided with the MinKNOW installation (for example, on MacOS run
export MINKNOW_TRUSTED_CA="/Applications/MinKNOW.app/Contents/Resources/conf/rpc-certs/ca.crt")
Once above prerequisites tests can be run with cargo test --tests.