# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "microsandbox-cli"
version = "0.6.5"
authors = ["Super Rad Company <development@superrad.company>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI binary for managing microsandbox environments."
readme = false
license = "Apache-2.0"
repository = "https://github.com/superradcompany/microsandbox"

[features]
default = [
    "net",
    "prebuilt",
    "keyring",
    "ssh",
]
keyring = ["microsandbox/keyring"]
net = [
    "dep:microsandbox-network",
    "microsandbox-runtime/net",
    "microsandbox/net",
    "dep:ipnetwork",
    "dep:thiserror",
]
prebuilt = [
    "microsandbox-runtime/prebuilt",
    "microsandbox/prebuilt",
]
ssh = [
    "microsandbox/ssh",
    "dep:russh",
]

[lib]
name = "microsandbox_cli"
path = "lib/lib.rs"

[[bin]]
name = "msb"
path = "bin/main.rs"

[[test]]
name = "exec_stream"
path = "tests/exec_stream.rs"

[[test]]
name = "exec_stream_scenarios"
path = "tests/exec_stream_scenarios.rs"

[[test]]
name = "live_resize"
path = "tests/live_resize.rs"

[[test]]
name = "ssh"
path = "tests/ssh.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1.9"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4.6"
features = [
    "color",
    "derive",
]

[dependencies.console]
version = "0.16"

[dependencies.dirs]
version = "6.0"

[dependencies.futures]
version = "0.3"

[dependencies.indicatif]
version = "0.18"

[dependencies.ipnetwork]
version = "0.21.0"
features = ["serde"]
optional = true

[dependencies.libc]
version = "0.2"

[dependencies.microsandbox]
version = "=0.6.5"
default-features = false

[dependencies.microsandbox-db]
version = "=0.6.5"

[dependencies.microsandbox-image]
version = "=0.6.5"

[dependencies.microsandbox-migration]
version = "=0.6.5"

[dependencies.microsandbox-network]
version = "=0.6.5"
optional = true

[dependencies.microsandbox-protocol]
version = "=0.6.5"

[dependencies.microsandbox-runtime]
version = "=0.6.5"
default-features = false

[dependencies.microsandbox-utils]
version = "=0.6.5"

[dependencies.rand]
version = "0.10.1"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "stream",
]

[dependencies.rpassword]
version = "7"

[dependencies.russh]
version = "0.61.1"
optional = true

[dependencies.sea-orm]
version = "1.1"
features = [
    "macros",
    "runtime-tokio-rustls",
    "sqlx-sqlite",
    "with-chrono",
]
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.tempfile]
version = "3.15"

[dependencies.thiserror]
version = "2.0"
optional = true

[dependencies.tokio]
version = "1.52"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dev-dependencies]

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
    "Win32_Foundation",
    "Win32_Storage_FileSystem",
    "Win32_System_IO",
]
