holochain_cli 0.8.0-dev.2

Provides the `hc` binary, a helpful CLI tool for working with Holochain.
Documentation
[package]
name = "holochain_cli"
version = "0.8.0-dev.2"
repository = "https://github.com/holochain/holochain"
documentation = "https://docs.rs/holochain_cli"
authors = ["Holochain Core Dev Team <devcore@holochain.org>"]
keywords = ["holochain", "holo"]
categories = [
  "command-line-utilities",
  "development-tools::build-utils",
  "filesystem",
]
edition = "2021"
license = "Apache-2.0"
description = "Provides the `hc` binary, a helpful CLI tool for working with Holochain."

[[bin]]
name = "hc"
path = "src/bin/hc.rs"

# Writes the TypeScript binding tree. Skipped by builds that don't enable
# `ts_rs`, including `cargo build --workspace`.
[[bin]]
name = "export-ts-bindings"
path = "src/bin/export-ts-bindings.rs"
required-features = ["ts_rs"]

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

# reminder - do not use workspace deps
[dependencies]
anyhow = "1.0"
clap = { version = "4.0", features = ["derive", "cargo"] }
lazy_static = "1.4"
holochain_cli_bundle = { path = "../hc_bundle", version = "^0.8.0-dev.2", default-features = false }
holochain_cli_sandbox = { path = "../hc_sandbox", version = "^0.8.0-dev.2", default-features = false }
holochain_cli_client = { path = "../hc_client", version = "^0.8.0-dev.2", default-features = false }
holochain_trace = { version = "^0.8.0-dev.0", path = "../holochain_trace" }
tokio = { version = "1.36.0", features = ["full"] }

# Optional, for the `export-ts-bindings` binary only
holochain_conductor_api = { version = "^0.8.0-dev.2", path = "../holochain_conductor_api", default-features = false, optional = true }
ts-rs = { version = "12.0", optional = true }

[dev-dependencies]
assert_cmd = "2.2"
predicates = "3.1"

[lints]
workspace = true

[features]

default = ["wasmer-sys-cranelift"]

wasmer-sys-cranelift = [
  "holochain_cli_sandbox/wasmer-sys-cranelift",
  "holochain_cli_client/wasmer-sys-cranelift",
]
wasmer-wasmi = [
  "holochain_cli_sandbox/wasmer-wasmi",
  "holochain_cli_client/wasmer-wasmi",
]

# Builds the `export-ts-bindings` binary, which writes the TypeScript
# bindings for the conductor's wire API.
ts_rs = [
  "dep:holochain_conductor_api",
  "dep:ts-rs",
  "holochain_conductor_api/ts_rs",
]

# Includes the countersigning app API in the exported TypeScript bindings.
unstable-countersigning = ["holochain_conductor_api?/unstable-countersigning"]