exedev 0.1.0

Official Rust SDK for exe.dev: create VMs, run commands on them, and run every exe.dev command
Documentation
// Code generated by "go run ./cmd/gensdkrs" in the exe.dev repository. DO NOT EDIT.

//! The exe.dev SDK: create VMs, run commands on them, and run every exe.dev
//! command, from Rust.
//!
//! ```no_run
//! # async fn example() -> exedev::Result<()> {
//! // EXE_TOKEN holds an API key.
//! let exe = exedev::Client::from_env()?;
//! let vm = exe.new_vm().await?;
//! let result = vm.run("uname -a").check(true).await?;
//! print!("{}", result.stdout_lossy());
//! vm.delete().await?;
//! # Ok(()) }
//! ```
//!
//! Methods return request builders: set options with their methods, then
//! `.await` them. A builder does nothing until it is awaited. Command groups
//! are namespaces: `exe.team().members()`, `vm.share().port(8000)`.
//!
//! - [`Client`] runs commands for your account: [`Client::new_vm`],
//!   [`Client::vms`], [`Client::vm`], and the rest in [`cmd`].
//! - [`Vm`] is a VM: [`Vm::run`] runs a command on it; [`Vm::write_file`],
//!   [`Vm::read_file`], [`Vm::upload`] and [`Vm::download`] move files;
//!   [`Vm::spawn`] starts a [`Process`] that outlives the connection.
//! - [`types`] are the JSON results of commands, as Rust types.
//! - Every error is an [`Error`].
//!
//! The SDK uses Tokio. With the `blocking` feature, [`blocking::BlockOn`]
//! runs requests from synchronous code.

#![warn(missing_docs)]

mod archive;
#[cfg(feature = "blocking")]
pub mod blocking;
mod client;
#[rustfmt::skip] // generated
pub mod cmd;
pub mod error;
mod process;
mod scripts;
mod token;
#[rustfmt::skip] // generated
pub mod types;
mod vm;
mod wire;

pub use client::{BoxFuture, Client, ClientBuilder, VERSION, Vms};
pub use error::{Error, Result};
pub use process::{Logs, LogsRequest, Process, Wait};
pub use token::{SignToken, sign_token};
pub use types::EgressPolicy;
pub use vm::{CommandResult, Run, Spawn, Upload, Vm, WaitUntil, WaitUntilReady, WriteFile};
pub use wire::{Command, MAX_OUTPUT, Stream, quote};