Skip to content
Open
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[alias]
stacks-node = "run --package stacks-node --"
fmt-stacks = "fmt -- --config group_imports=StdExternalCrate,imports_granularity=Module"
clippy-stacks = "clippy -p stx-genesis -p libstackerdb -p stacks-signer -p pox-locking -p clarity-types -p clarity -p libsigner -p stacks-common --no-deps --tests --all-features -- -D warnings"
clippy-stacks = "clippy -p stx-genesis -p libstackerdb -p stacks-signer -p pox-locking -p clarity-types -p clarity -p libsigner -p stacks-common -p clarity-cli -p stacks-cli -p stacks-inspect --no-deps --tests --all-features -- -D warnings"
clippy-stackslib = "clippy -p stackslib --no-deps -- -Aclippy::all -Wclippy::indexing_slicing -Wclippy::nonminimal_bool -Wclippy::clone_on_copy"

# Uncomment to improve performance slightly, at the cost of portability
Expand Down
18 changes: 18 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ members = [
"stacks-signer",
"stacks-node",
"contrib/stacks-inspect",
"contrib/clarity-cli",
"contrib/stacks-cli"
]

Expand Down
19 changes: 19 additions & 0 deletions contrib/clarity-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "clarity-cli"
version = "0.1.0"
edition = "2024"

[dependencies]
clarity = { path = "../../clarity", default-features = false }
stackslib = { package = "stackslib", path = "../../stackslib", default-features = false }
stacks-common = { path = "../../stacks-common", default-features = false }
slog = { version = "2.5.2", features = [ "max_level_trace" ] }
lazy_static = { version = "1.4.0", default-features = false }
serde = { version = "1" }
serde_derive = "1"
serde_json = { workspace = true }
rand = { workspace = true }
rusqlite = { workspace = true }

[dev-dependencies]
stacks-common = { path = "../../stacks-common", default-features = false, features = ["testing"] }
15 changes: 15 additions & 0 deletions contrib/clarity-cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# clarity-cli

A thin wrapper executable for the Clarity CLI exposed by `blockstack_lib::clarity_cli`. It forwards argv to the library, prints JSON output, and exits with the underlying status code.

Build:
```bash
cargo build -p clarity-cli
```

Usage:
```bash
./target/debug/clarity-cli --help
```

For advanced usage and subcommands, see the upstream Clarity CLI documentation or run with `--help`.
Loading
Loading