[package] name = "interfacer-http" version = "0.2.2" authors = ["Hexilee "] edition = "2018" license = "MIT" description = "A magic HTTP client, like retrofit in Java" repository = "https://github.com/Hexilee/interfacer-http" keywords = ["http", "client", "interfacer"] categories = ["network-programming", "web-programming::http-client"] readme = "README.md" documentation = "https://docs.rs/interfacer-http" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [workspace] members = [ "interfacer-http-attribute", "interfacer-http-hyper", ] [dependencies] interfacer-http-attribute = { path = "interfacer-http-attribute", version = "0.2" } derive_more = "0.15" http = "0.1" mime = "0.3" cookie = "0.12" async-trait = "0.1" url = "2" serde_json = { version = "1.0", optional = true } rmp-serde = { version = "0.13", optional = true } serde_urlencoded = { version = "0.6", optional = true } serde-xml-rs = { version = "0.3", optional = true } serde = { version = "1.0", optional = true } lib-encoding = { package = "encoding", version = "0.2", optional = true } unhtml = { version = "0.7", optional = true } # for test serde_derive = { version = "1.0", optional = true } unhtml_derive = { version = "0.7", optional = true } tokio = { version = "0.2.0-alpha.4", optional = true } [features] encoding = ["lib-encoding"] serde-base = ["serde"] serde-json = ["serde_json"] serde-msgpack = ["rmp-serde"] serde-urlencoded = ["serde_urlencoded"] serde-xml = ["serde-xml-rs"] serde-full = ["serde", "serde_json", "rmp-serde", "serde_urlencoded", "serde-xml-rs"] unhtml-html = ["unhtml"] mock = [] # only for test derive = ["serde_derive", "unhtml_derive"] runtime = ["tokio"] [[test]] name = "http-service" path = "proc-macro-tests/http_service.rs" edition = "2018" required-features = ["derive", "serde-full", "runtime", "mock"]