No description
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| nix/tamal | ||
| src | ||
| .envrc | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
| shell.nix | ||
Mikrotik.rs
Experimental Rust library for communicating with MikroTik RouterOS. Built specifically for use in mikrotik.nix.
The library does not assume the transport, as long as the socket implements Read and Write traits, so opening the connection, handling SSL (if desirable) and other bookkeeping is up to the consumer.
Non-goals
Because this is not meant to be a fully-featured generic library, some features are not supported. PRs are welcome.
- async communication - not talking about async Rust. The RouterOS API exposes the ability to run multiple commands in parallel, without waiting for any one of them to complete. This is not supported, the client is completely synchronous.
- async communication - talking about async Rust. The client is using synchronous Read and Write traits.
- arbitrary queries
TODO before 1.0 release
- actual logging
- gracefully handle all responses
- always read until the end, even in case of an error