Skip to content

Commit 774aa7b

Browse files
committed
Add human_encoding feature
1 parent ceadecf commit 774aa7b

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ default = ["elements"]
1616
elements = ["dep:elements", "bitcoin"]
1717
test-utils = ["simplicity-sys/test-utils"]
1818
serde = ["dep:serde", "bitcoin/serde", "elements/serde"]
19+
human_encoding = ["dep:logos"]
1920

2021
[lib]
2122
name = "simplicity"
@@ -29,7 +30,7 @@ elements = { version = "0.25.0", optional = true, default-features = false }
2930
ghost-cell = { version = "0.2.6", default-features = false }
3031
hashes = { package = "bitcoin_hashes", version = "0.14" }
3132
hex = { package = "hex-conservative", version = "0.2.1" }
32-
logos = "0.15"
33+
logos = { version = "0.15", optional = true }
3334
simplicity-sys = { version = "0.6.2", path = "./simplicity-sys" }
3435
serde = { version = "1.0.103", features = ["derive"], optional = true }
3536

@@ -40,6 +41,7 @@ getrandom = { version = "0.2", features = ["js"] }
4041
simplicity-sys = { version = "0.6.2", path = "./simplicity-sys", features = [
4142
"test-utils",
4243
] }
44+
logos = "0.15"
4345
serde_json = "1.0.149"
4446

4547
[workspace]

fuzz/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ path = "fuzz_lib/lib.rs"
1616
libfuzzer-sys = "0.4"
1717
# We shouldn't need an explicit version on the next line, but Andrew's tools
1818
# choke on it otherwise. See https://github.com/nix-community/crate2nix/issues/373
19-
simplicity-lang = { path = "..", features = ["test-utils"], version = "0.7.0" }
19+
simplicity-lang = { path = "..", features = ["test-utils", "human_encoding"], version = "0.7.0" }
2020
old_simplicity = { package = "simplicity-lang", version = "0.3.1", default-features = false }
2121

2222
[dev-dependencies]

simpcli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2018"
77

88
[dependencies]
99
# todo add lexopt for command line parsing
10-
simplicity-lang = { version = "0.7.0", path = "..", features = [ "base64", "serde", "elements" ] }
10+
simplicity-lang = { version = "0.7.0", path = "..", features = [ "base64", "serde", "elements", "human_encoding" ] }
1111

1212
[[bin]]
1313
name = "simpcli"

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ mod analysis;
9090
mod bit_encoding;
9191
pub mod bit_machine;
9292
pub mod dag;
93+
#[cfg(any(feature = "human_encoding", test))]
9394
pub mod human_encoding;
9495
pub mod jet;
9596
mod merkle;

0 commit comments

Comments
 (0)