# 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 = "2021"
name = "sail-rs"
version = "0.2.18"
build = "build.rs"
include = [
    "src/**/*.rs",
    "build.rs",
    "proto/**/*.proto",
    "examples/**/*.rs",
    "README.md",
    "LICENSE",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Official Rust SDK for Sail: create and drive sailboxes (sandboxed cloud VMs) with lifecycle, streaming exec, file transfer, and ingress."
documentation = "https://docs.rs/sail-rs"
readme = "README.md"
keywords = [
    "sail",
    "sailbox",
    "sandbox",
    "sdk",
    "vm",
]
categories = [
    "api-bindings",
    "development-tools",
]
license = "Apache-2.0"
repository = "https://github.com/sailresearchco/sail"

[package.metadata.docs.rs]
all-features = false

[features]
fuzzing = []
test-fakes = ["tonic/server"]

[lib]
name = "sail"
path = "src/lib.rs"

[[example]]
name = "exec"
path = "examples/exec.rs"

[[example]]
name = "list_sailboxes"
path = "examples/list_sailboxes.rs"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.dirs]
version = "5"

[dependencies.form_urlencoded]
version = "1"

[dependencies.futures]
version = "0.3"

[dependencies.http-body]
version = "1"

[dependencies.httpdate]
version = "1"

[dependencies.ignore]
version = "0.4"

[dependencies.ipnet]
version = "2"

[dependencies.prost]
version = "0.14"

[dependencies.rand]
version = "0.9"

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls-native-roots",
    "http2",
    "stream",
    "system-proxy",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.shell-words]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = ["serde-well-known"]

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "time",
    "macros",
    "sync",
    "net",
    "io-util",
    "fs",
]

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tokio-util]
version = "0.7"
features = ["io"]

[dependencies.toml]
version = "0.8"

[dependencies.tonic]
version = "0.14"
features = ["tls-native-roots"]

[dependencies.tonic-prost]
version = "0.14"

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.assert_matches]
version = "1.5"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio-stream]
version = "0.1"
features = ["net"]

[dev-dependencies.wiremock]
version = "0.6"

[build-dependencies.protoc-bin-vendored]
version = "3"

[build-dependencies.tonic-prost-build]
version = "0.14"

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[lints.clippy]
assigning_clones = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
float_cmp = "allow"
format_push_string = "allow"
items_after_statements = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_continue = "allow"
needless_pass_by_value = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
unnecessary_wraps = "allow"
unused_self = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unreachable_pub = "warn"
