Crate distant_local

source ·
Expand description

distant local

Crates.io Docs.rs Rustc 1.70.0

Details

The distant-local library acts as the primary implementation of a distant server that powers the CLI. The logic acts on the local machine of the server and is designed to be used as the foundation for distant operation handling.

Installation

You can import the dependency by adding the following to your Cargo.toml:

[dependencies]
distant-local = "0.20"

Examples

use distant_local::{Config, new_handler};

// Create a server API handler to be used with the server
let handler = new_handler(Config::default()).unwrap();

License

This project is licensed under either of

Apache License, Version 2.0, (LICENSE-APACHE or apache-license) MIT license (LICENSE-MIT or mit-license) at your option.

Structs

  • Represents an implementation of DistantApi that works with the local machine where the server using this api is running. In other words, this is a direct impementation of the API instead of a proxy to another machine as seen with implementations on top of SSH and other protocol.
  • Configuration specifically for watching files and directories.

Functions

Type Definitions