e032d3d4aa
* add first draft of the http api * chore note on the difficulties with with_graceful_shutdown * add the second required output line by js-ipfsd-ctl * run cargo fmt for different formatting from rls? * chore note on (stalled) progress * add remaining cli args boilerplate what is missing now is using ephemeral addresses with the warp, as js-ipfsd-ctl doesn't always to shutdown the older one, or then it just doesn't shut down correctly. * fix bind to ephemeral localhost port * add env_logger initialization * fix faked multiaddr typo never remember its "ip4" instead of "ipv4" * fix do GET on every method in /id for some reason js-ipfsd-ctl will do a POST against /api/v0/id. * chore run cargo fmt * Adding placeholder NOT_IMPLEMENTED endpiints * rustfmt * Feedback from PR * Update http/Cargo.toml Co-Authored-By: Joonas Koivunen <joonas@equilibrium.co> Co-authored-by: Mark Robert Henderson <henderson.mark@gmail.com>
15 lines
338 B
TOML
15 lines
338 B
TOML
[package]
|
|
name = "rust-ipfs-http"
|
|
version = "0.1.0"
|
|
authors = ["Joonas Koivunen <joonas@equilibrium.co>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
env_logger = "*"
|
|
ipfs = { path = "../" }
|
|
serde = { version = "*", features = ["derive"] }
|
|
serde_json = "*"
|
|
structopt = "*"
|
|
tokio = { version = "0.2", features = ["full"] }
|
|
warp = { version = "0.2" }
|