# Copyright 2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ------------------------------------------------------------------------------

[package]
name = "sawtooth-sdk"
version = "0.4.2"
authors = ["Bitwise IO, Inc.", "Intel Corporation"]
build = "build.rs"
license = "Apache-2.0"
description = """\
    Hyperledger Sawtooth is an enterprise blockchain platform for building \
    distributed ledger applications and networks.
"""
documentation = "https://sawtooth.hyperledger.org/docs/core/releases/latest/"

[features]
default = ["pem"]

stable = ["default"]

experimental = [
    "transact-compat",
]

# Add support for loading PEM encoded private keys
pem = ["openssl"]
transact-compat = ["transact"]

[dependencies]
hex = "0.3"
protobuf="2"
secp256k1 = "0.7.1"
rand = "0.4.2"
rust-crypto = "0.2.36"
zmq = "0.9"
uuid = { version = "0.5", features = ["v4"] }
log = "0.3"
libc = "0.2"
ctrlc = { version = "3.0", features = ["termination"] }
openssl = { version = "0.10", optional = true }
transact = { version = "0.2", optional = true }

[dev-dependencies]
env_logger = "0.3"

[build-dependencies]
protoc-rust = "2.0"
glob = "0.2"

[package.metadata.docs.rs]
features = [
  "stable",
  "experimental"
]
