Skip to content

Commit 62fe5cb

Browse files
Merge pull request #6529 from Jiloc/chore/move-clarity-cli-to-contrib
chore: move `clarity-cli` to contrib
2 parents 1efff8e + a149699 commit 62fe5cb

File tree

20 files changed

+283
-201
lines changed

20 files changed

+283
-201
lines changed

.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[alias]
22
stacks-node = "run --package stacks-node --"
33
fmt-stacks = "fmt -- --config group_imports=StdExternalCrate,imports_granularity=Module"
4-
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"
4+
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"
55
clippy-stackslib = "clippy -p stackslib --no-deps -- -Aclippy::all -Wclippy::indexing_slicing -Wclippy::nonminimal_bool -Wclippy::clone_on_copy"
66

77
# Uncomment to improve performance slightly, at the cost of portability

Cargo.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ members = [
1212
"stacks-signer",
1313
"stacks-node",
1414
"contrib/stacks-inspect",
15+
"contrib/clarity-cli",
1516
"contrib/stacks-cli"
1617
]
1718

contrib/clarity-cli/Cargo.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[package]
2+
name = "clarity-cli"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]
7+
clarity = { path = "../../clarity", default-features = false }
8+
stackslib = { package = "stackslib", path = "../../stackslib", default-features = false }
9+
stacks-common = { path = "../../stacks-common", default-features = false }
10+
slog = { version = "2.5.2", features = [ "max_level_trace" ] }
11+
lazy_static = { version = "1.4.0", default-features = false }
12+
serde = { version = "1" }
13+
serde_derive = "1"
14+
serde_json = { workspace = true }
15+
rand = { workspace = true }
16+
rusqlite = { workspace = true }
17+
18+
[dev-dependencies]
19+
stacks-common = { path = "../../stacks-common", default-features = false, features = ["testing"] }

contrib/clarity-cli/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# clarity-cli
2+
3+
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.
4+
5+
Build:
6+
```bash
7+
cargo build -p clarity-cli
8+
```
9+
10+
Usage:
11+
```bash
12+
./target/debug/clarity-cli --help
13+
```
14+
15+
For advanced usage and subcommands, see the upstream Clarity CLI documentation or run with `--help`.

0 commit comments

Comments
 (0)