212 lines
		
	
	
		
			4.0 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			212 lines
		
	
	
		
			4.0 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
| [package]
 | |
| name = "hyper"
 | |
| version = "0.13.1" # don't forget to update html_root_url
 | |
| description = "A fast and correct HTTP library."
 | |
| readme = "README.md"
 | |
| homepage = "https://hyper.rs"
 | |
| documentation = "https://docs.rs/hyper"
 | |
| repository = "https://github.com/hyperium/hyper"
 | |
| license = "MIT"
 | |
| authors = ["Sean McArthur <sean@seanmonstar.com>"]
 | |
| keywords = ["http", "hyper", "hyperium"]
 | |
| categories = ["network-programming", "web-programming::http-client", "web-programming::http-server"]
 | |
| edition = "2018"
 | |
| 
 | |
| include = [
 | |
|   "Cargo.toml",
 | |
|   "LICENSE",
 | |
|   "src/**/*",
 | |
|   #"build.rs",
 | |
| ]
 | |
| 
 | |
| [dependencies]
 | |
| bytes = "0.5"
 | |
| futures-core = { version = "0.3", default-features = false }
 | |
| futures-channel = "0.3"
 | |
| futures-util = { version = "0.3", default-features = false }
 | |
| http = "0.2"
 | |
| http-body = "0.3.1"
 | |
| httparse = "1.0"
 | |
| h2 = "0.2.1"
 | |
| itoa = "0.4.1"
 | |
| log = "0.4"
 | |
| pin-project = "0.4"
 | |
| time = "0.1"
 | |
| tower-service = "0.3"
 | |
| tokio = { version = "0.2", features = ["sync"] }
 | |
| want = "0.3"
 | |
| 
 | |
| # Optional
 | |
| 
 | |
| net2 = { version = "0.2.32", optional = true }
 | |
| 
 | |
| [dev-dependencies]
 | |
| futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
 | |
| matches = "0.1"
 | |
| num_cpus = "1.0"
 | |
| pretty_env_logger = "0.4"
 | |
| spmc = "0.3"
 | |
| serde = "1.0"
 | |
| serde_derive = "1.0"
 | |
| serde_json = "1.0"
 | |
| tokio = { version = "0.2.2", features = ["fs", "macros", "io-std", "rt-util", "sync", "time", "test-util"] }
 | |
| tokio-test = "0.2"
 | |
| tower-util = "0.3"
 | |
| url = "1.0"
 | |
| 
 | |
| [features]
 | |
| default = [
 | |
|     "runtime",
 | |
|     "stream",
 | |
| ]
 | |
| runtime = [
 | |
|     "tcp",
 | |
|     "tokio/rt-core",
 | |
| ]
 | |
| tcp = [
 | |
|     "net2",
 | |
|     "tokio/blocking",
 | |
|     "tokio/tcp",
 | |
|     "tokio/time",
 | |
| ]
 | |
| 
 | |
| # `impl Stream` for things
 | |
| stream = []
 | |
| 
 | |
| # internal features used in CI
 | |
| nightly = []
 | |
| __internal_happy_eyeballs_tests = []
 | |
| 
 | |
| [package.metadata.docs.rs]
 | |
| features = [
 | |
|     "runtime",
 | |
|     "stream",
 | |
| ]
 | |
| 
 | |
| [profile.release]
 | |
| codegen-units = 1
 | |
| incremental = false
 | |
| 
 | |
| [profile.bench]
 | |
| codegen-units = 1
 | |
| incremental = false
 | |
| 
 | |
| [[example]]
 | |
| name = "client"
 | |
| path = "examples/client.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[example]]
 | |
| name = "client_json"
 | |
| path = "examples/client_json.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[example]]
 | |
| name = "echo"
 | |
| path = "examples/echo.rs"
 | |
| required-features = ["runtime", "stream"]
 | |
| 
 | |
| [[example]]
 | |
| name = "gateway"
 | |
| path = "examples/gateway.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[example]]
 | |
| name = "hello"
 | |
| path = "examples/hello.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[example]]
 | |
| name = "http_proxy"
 | |
| path = "examples/http_proxy.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[example]]
 | |
| name = "multi_server"
 | |
| path = "examples/multi_server.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[example]]
 | |
| name = "params"
 | |
| path = "examples/params.rs"
 | |
| required-features = ["runtime", "stream"]
 | |
| 
 | |
| [[example]]
 | |
| name = "send_file"
 | |
| path = "examples/send_file.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[example]]
 | |
| name = "single_threaded"
 | |
| path = "examples/single_threaded.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[example]]
 | |
| name = "state"
 | |
| path = "examples/state.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[example]]
 | |
| name = "tower_client"
 | |
| path = "examples/tower_client.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[example]]
 | |
| name = "tower_server"
 | |
| path = "examples/tower_server.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[example]]
 | |
| name = "upgrades"
 | |
| path = "examples/upgrades.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| 
 | |
| [[example]]
 | |
| name = "web_api"
 | |
| path = "examples/web_api.rs"
 | |
| required-features = ["runtime", "stream"]
 | |
| 
 | |
| 
 | |
| [[bench]]
 | |
| name = "body"
 | |
| path = "benches/body.rs"
 | |
| required-features = ["runtime", "stream"]
 | |
| 
 | |
| [[bench]]
 | |
| name = "connect"
 | |
| path = "benches/connect.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[bench]]
 | |
| name = "end_to_end"
 | |
| path = "benches/end_to_end.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[bench]]
 | |
| name = "pipeline"
 | |
| path = "benches/pipeline.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 | |
| [[bench]]
 | |
| name = "server"
 | |
| path = "benches/server.rs"
 | |
| required-features = ["runtime", "stream"]
 | |
| 
 | |
| 
 | |
| [[test]]
 | |
| name = "client"
 | |
| path = "tests/client.rs"
 | |
| required-features = ["runtime", "stream"]
 | |
| 
 | |
| [[test]]
 | |
| name = "integration"
 | |
| path = "tests/integration.rs"
 | |
| required-features = ["runtime", "stream"]
 | |
| 
 | |
| [[test]]
 | |
| name = "server"
 | |
| path = "tests/server.rs"
 | |
| required-features = ["runtime"]
 | |
| 
 |