diff options
author | Ferris Tseng <ferristseng@gmail.com> | 2019-02-13 20:38:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-13 20:38:01 -0500 |
commit | de3588c7c369ea4f4cca66f89c12511d1170e5f5 (patch) | |
tree | 965a5a80b387c0eb719ca568a96a729d9d3f2ade /ipfs-api/Cargo.toml | |
parent | f125fdbde329095419630e02ebf33d2c73aeced7 (diff) | |
parent | 4bdebbf4d1d1edb839eba860b013e3fdb870f66e (diff) |
Merge pull request #28 from ferristseng/actix
Add actix feature for using actix-web
Diffstat (limited to 'ipfs-api/Cargo.toml')
-rw-r--r-- | ipfs-api/Cargo.toml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ipfs-api/Cargo.toml b/ipfs-api/Cargo.toml index f3fb604..39cad56 100644 --- a/ipfs-api/Cargo.toml +++ b/ipfs-api/Cargo.toml @@ -13,13 +13,19 @@ license = "MIT OR Apache-2.0" [badges] travis-ci = { repository = "ferristseng/rust-ipfs-api" } +[features] +default = ["hyper", "hyper-multipart-rfc7578"] +actix = ["actix-web", "actix-multipart-rfc7578"] + [dependencies] +actix-multipart-rfc7578 = { version = "0.1", optional = true } +actix-web = { version = "0.7", optional = true } bytes = "0.4" failure = "0.1.2" futures = "0.1" http = "0.1" -hyper = "0.12" -hyper-multipart-rfc7578 = "0.3.0" +hyper = { version = "0.12", optional = true } +hyper-multipart-rfc7578 = { version = "0.3", optional = true } serde = "1.0" serde_derive = "1.0" serde_json = "1.0" |