# 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 = "colonyos"
version = "1.0.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for ColonyOS - build distributed applications with executors that can run anywhere"
homepage = "https://colonyos.io"
documentation = "https://docs.rs/colonyos"
readme = "README.md"
keywords = [
    "colonies",
    "colonyos",
    "distributed",
    "computing",
    "orchestration",
]
categories = [
    "api-bindings",
    "asynchronous",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/colonyos/rust"

[features]
default = ["native"]
native = []
wasm = [
    "wasm-bindgen",
    "wasm-bindgen-futures",
]

[lib]
name = "colonyos"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

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

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

[dependencies.base64]
version = "0.21"

[dependencies.hex]
version = "0.4"

[dependencies.k256]
version = "0.13"
features = [
    "ecdsa",
    "sha256",
]

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

[dependencies.serde_json]
version = "1"

[dependencies.sha3]
version = "0.10"

[dependencies.wasm-bindgen]
version = "0.2.88"
optional = true

[dependencies.wasm-bindgen-futures]
version = "0.4.38"
optional = true

[dev-dependencies.random-string]
version = "1.0"

[dev-dependencies.tokio-test]
version = "0.4"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.futures-util]
version = "0.3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rand]
version = "0.8"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.11"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = ["full"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite]
version = "0.21"
features = ["rustls-tls-native-roots"]

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.rand]
version = "0.8"
features = ["getrandom"]

[target.'cfg(target_arch = "wasm32")'.dependencies.reqwest]
version = "0.12"
features = ["json"]
default-features = false
