|
|
@ -13,7 +13,7 @@ crate-type = ["rlib", "cdylib", "staticlib"]
|
|
|
|
[features]
|
|
|
|
[features]
|
|
|
|
default = ["ffi", "crc"]
|
|
|
|
default = ["ffi", "crc"]
|
|
|
|
|
|
|
|
|
|
|
|
ffi = ["malloc-array"]
|
|
|
|
ffi = ["libc", "malloc-array"]
|
|
|
|
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
[profile.release]
|
|
|
|
opt-level = 3
|
|
|
|
opt-level = 3
|
|
|
@ -24,7 +24,7 @@ panic = "unwind"
|
|
|
|
[dependencies]
|
|
|
|
[dependencies]
|
|
|
|
sha2 = "0.9"
|
|
|
|
sha2 = "0.9"
|
|
|
|
malloc-array = {version = "1.4", optional=true}
|
|
|
|
malloc-array = {version = "1.4", optional=true}
|
|
|
|
libc = "0.2"
|
|
|
|
libc = {version = "0.2", optional=true}
|
|
|
|
crc = {version = "1.8", optional=true}
|
|
|
|
crc = {version = "1.8", optional=true}
|
|
|
|
hex-literal = "0.2"
|
|
|
|
hex-literal = "0.2"
|
|
|
|
getrandom = "0.1"
|
|
|
|
getrandom = "0.1"
|
|
|
|