Alphabetize deps + features, add features to docs
@@ -12,26 +12,23 @@ description = """\
"""
repository = "http://github.com/hyperledger/transact"
-[package.metadata.docs.rs]
-features = ["experimental"]
-
[dependencies]
+cbor-codec = { version = "0.7", optional = true }
hex = "0.3"
-protobuf = "2"
-rand = "0.6"
-sha2 = "0.8"
+libc = ">=0.2.35"
lmdb-zero = ">=0.4.1"
log = { version = "0.4", features = ["std"] }
-cbor-codec = { version = "0.7", optional = true }
-libc = ">=0.2.35"
openssl = "0.10"
-uuid = { version = "0.7", features = ["v4"] }
-sawtooth-sdk = { version = "0.3", optional = true }
-ursa = { version = "0.2.0", optional = true }
+protobuf = "2"
r2d2 = { version = "0.8", optional = true }
r2d2_sqlite = { version = "0.14", optional = true }
+rand = "0.6"
redis = { version = "0.13.0", default-features = false, optional = true }
rusqlite = { version = "0.21.0", optional = true }
+sawtooth-sdk = { version = "0.3", optional = true }
+sha2 = "0.8"
+ursa = { version = "0.2.0", optional = true }
+uuid = { version = "0.7", features = ["v4"] }
[dev-dependencies]
rand_hc = "0.1"
@@ -42,7 +39,9 @@ protoc-rust = "2"
[features]
default = ["state-merkle"]
+
nightly = []
+
experimental = [
"contract",
"contract-address",
@@ -55,9 +54,7 @@ experimental = [
"redis-db",
"sqlite-db"
]
-sawtooth-compat = ["sawtooth-sdk"]
-ursa-compat = ["ursa"]
-redis-db = ["redis"]
+
contract = []
contract-address = ["contract"]
contract-address-key-hash = ["contract-address"]
@@ -66,5 +63,16 @@ contract-address-triple-key-hash = ["contract-address"]
contract-context = ["contract", "contract-address"]
contract-context-key-value = ["contract-context", "key-value-state"]
key-value-state = []
+redis-db = ["redis"]
+sawtooth-compat = ["sawtooth-sdk"]
sqlite-db = ["rusqlite", "r2d2", "r2d2_sqlite"]
state-merkle = ["cbor-codec"]
+ursa-compat = ["ursa"]
+
+[package.metadata.docs.rs]
+features = [
+ "default",
+ "nightly",
+ "experimental",
+ "sawtooth-compat",
+]
