From 89519b4c5ce4839a362ab9ec9c6359f3c6aa844b Mon Sep 17 00:00:00 2001 From: Ferris Tseng Date: Mon, 22 Feb 2021 20:42:28 -0500 Subject: add actix backend --- ipfs-api-backend-actix/Cargo.toml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ipfs-api-backend-actix/Cargo.toml (limited to 'ipfs-api-backend-actix/Cargo.toml') diff --git a/ipfs-api-backend-actix/Cargo.toml b/ipfs-api-backend-actix/Cargo.toml new file mode 100644 index 0000000..3a616a6 --- /dev/null +++ b/ipfs-api-backend-actix/Cargo.toml @@ -0,0 +1,26 @@ +[package] +name = "ipfs-api-backend-actix" +description = "Actix implementation of IPFS HTTP API" +authors = ["Ferris Tseng "] +edition = "2018" +documentation = "https://docs.rs/ipfs-api" +repository = "https://github.com/ferristseng/rust-ipfs-api" +keywords = ["ipfs"] +categories = ["filesystem", "web-programming"] +version = "0.1.0" +readme = "../README.md" +license = "MIT OR Apache-2.0" + +[dependencies] +actix-http = "2.2" +actix-multipart-rfc7578 = "0.4" +awc = "2.0" +async-trait = "0.1" +bytes = "1.0" +futures = "0.3" +http = "0.2" +ipfs-api-prelude = { version = "0.1.0", path = "../ipfs-api-prelude" } +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" +serde_urlencoded = "0.7" +thiserror = "1.0" -- cgit v1.2.3 From 4ede307efb87bad2627190665279123e588a3494 Mon Sep 17 00:00:00 2001 From: Ferris Tseng Date: Mon, 22 Feb 2021 22:56:04 -0500 Subject: centralize errors in prelude as much as possible --- ipfs-api-backend-actix/Cargo.toml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ipfs-api-backend-actix/Cargo.toml') diff --git a/ipfs-api-backend-actix/Cargo.toml b/ipfs-api-backend-actix/Cargo.toml index 3a616a6..22e4ba9 100644 --- a/ipfs-api-backend-actix/Cargo.toml +++ b/ipfs-api-backend-actix/Cargo.toml @@ -20,7 +20,5 @@ bytes = "1.0" futures = "0.3" http = "0.2" ipfs-api-prelude = { version = "0.1.0", path = "../ipfs-api-prelude" } -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" -serde_urlencoded = "0.7" +serde = "1.0" thiserror = "1.0" -- cgit v1.2.3 From dd03b0edb4928894b64b85cc44a4984a721650c2 Mon Sep 17 00:00:00 2001 From: Ferris Tseng Date: Tue, 23 Feb 2021 23:44:34 -0500 Subject: fixing actix examples by upgrading to new rt --- ipfs-api-backend-actix/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipfs-api-backend-actix/Cargo.toml') diff --git a/ipfs-api-backend-actix/Cargo.toml b/ipfs-api-backend-actix/Cargo.toml index 22e4ba9..a0760d8 100644 --- a/ipfs-api-backend-actix/Cargo.toml +++ b/ipfs-api-backend-actix/Cargo.toml @@ -12,9 +12,9 @@ readme = "../README.md" license = "MIT OR Apache-2.0" [dependencies] -actix-http = "2.2" -actix-multipart-rfc7578 = "0.4" -awc = "2.0" +actix-http = "3.0.0-beta.2" +actix-multipart-rfc7578 = { version = "0.5", git = "https://github.com/ferristseng/rust-multipart-rfc7578", branch = "ftseng/upgrade-actix-rt" } +awc = "3.0.0-beta.2" async-trait = "0.1" bytes = "1.0" futures = "0.3" -- cgit v1.2.3 From ade2a19df4285c2bfd8924efed97895fc63175d8 Mon Sep 17 00:00:00 2001 From: Ferris Tseng Date: Sun, 4 Apr 2021 18:48:28 -0400 Subject: upgrade dependency --- ipfs-api-backend-actix/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipfs-api-backend-actix/Cargo.toml') diff --git a/ipfs-api-backend-actix/Cargo.toml b/ipfs-api-backend-actix/Cargo.toml index a0760d8..ef99591 100644 --- a/ipfs-api-backend-actix/Cargo.toml +++ b/ipfs-api-backend-actix/Cargo.toml @@ -12,9 +12,9 @@ readme = "../README.md" license = "MIT OR Apache-2.0" [dependencies] -actix-http = "3.0.0-beta.2" -actix-multipart-rfc7578 = { version = "0.5", git = "https://github.com/ferristseng/rust-multipart-rfc7578", branch = "ftseng/upgrade-actix-rt" } -awc = "3.0.0-beta.2" +actix-http = "3.0.0-beta.5" +actix-multipart-rfc7578 = "0.5" +awc = "3.0.0-beta.4" async-trait = "0.1" bytes = "1.0" futures = "0.3" -- cgit v1.2.3