diff --git a/Cargo.toml b/Cargo.toml index 76ad80a8..ea3bf35a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,7 @@ default = ["elements"] elements = ["dep:elements", "bitcoin"] test-utils = ["simplicity-sys/test-utils"] serde = ["dep:serde", "bitcoin/serde", "elements/serde"] +human_encoding = [] [lib] name = "simplicity" diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 4135e812..17cc3bc3 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -16,7 +16,7 @@ path = "fuzz_lib/lib.rs" libfuzzer-sys = "0.4" # We shouldn't need an explicit version on the next line, but Andrew's tools # choke on it otherwise. See https://github.com/nix-community/crate2nix/issues/373 -simplicity-lang = { path = "..", features = ["test-utils"], version = "0.7.0" } +simplicity-lang = { path = "..", features = ["test-utils", "human_encoding"], version = "0.7.0" } old_simplicity = { package = "simplicity-lang", version = "0.3.1", default-features = false } [dev-dependencies] diff --git a/simpcli/Cargo.toml b/simpcli/Cargo.toml index 1f9e5eb7..fc36657d 100644 --- a/simpcli/Cargo.toml +++ b/simpcli/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] # todo add lexopt for command line parsing -simplicity-lang = { version = "0.7.0", path = "..", features = [ "base64", "serde", "elements" ] } +simplicity-lang = { version = "0.7.0", path = "..", features = [ "base64", "serde", "elements", "human_encoding" ] } [[bin]] name = "simpcli" diff --git a/src/lib.rs b/src/lib.rs index 4f9b7951..531abb36 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -90,6 +90,7 @@ mod analysis; mod bit_encoding; pub mod bit_machine; pub mod dag; +#[cfg(any(feature = "human_encoding", test))] pub mod human_encoding; pub mod jet; mod merkle;