Skip to content

Commit 5e6341b

Browse files
committed
Initial setup
1 parent dcac64a commit 5e6341b

File tree

4 files changed

+82
-0
lines changed

4 files changed

+82
-0
lines changed

.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
# Created by https://www.gitignore.io/api/rust,macos
2+
# Edit at https://www.gitignore.io/?templates=rust,macos
3+
4+
### macOS ###
5+
# General
6+
.DS_Store
7+
.AppleDouble
8+
.LSOverride
9+
10+
# Icon must end with two \r
11+
Icon
12+
13+
# Thumbnails
14+
._*
15+
16+
# Files that might appear in the root of a volume
17+
.DocumentRevisions-V100
18+
.fseventsd
19+
.Spotlight-V100
20+
.TemporaryItems
21+
.Trashes
22+
.VolumeIcon.icns
23+
.com.apple.timemachine.donotpresent
24+
25+
# Directories potentially created on remote AFP share
26+
.AppleDB
27+
.AppleDesktop
28+
Network Trash Folder
29+
Temporary Items
30+
.apdisk
31+
32+
### Rust ###
133
# Generated by Cargo
234
# will have compiled files and executables
335
/target/
@@ -8,3 +40,8 @@ Cargo.lock
840

941
# These are backup files generated by rustfmt
1042
**/*.rs.bk
43+
44+
# Others
45+
async-pipe-rs.iws
46+
47+
# End of https://www.gitignore.io/api/rust,macos

Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "stream-body"
3+
version = "0.1.0"
4+
description = "An HttpBody implementation which supports streaming for the Rust HTTP library hyper"
5+
homepage = "https://github.com/rousan/stream-body"
6+
repository = "https://github.com/rousan/stream-body"
7+
keywords = ["rust", "hyper", "aschronous", "stream", "writer"]
8+
categories = ["asynchronous"]
9+
authors = ["Rousan Ali <[email protected]>"]
10+
readme = "README.md"
11+
license = "MIT"
12+
edition = "2018"
13+
14+
[dependencies]
15+
log = "0.4"
16+
17+
[dev-dependencies]
18+
tokio = { version = "0.2", features = ["full"] }

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# stream-body
2+
3+
[![crates.io](https://img.shields.io/crates/v/stream-body.svg)](https://crates.io/crates/stream-body)
4+
[![Documentation](https://docs.rs/stream-body/badge.svg)](https://docs.rs/stream-body)
5+
[![MIT](https://img.shields.io/crates/l/stream-body.svg)](./LICENSE)
6+
7+
An [HttpBody](https://docs.rs/hyper/0.13.4/hyper/body/trait.HttpBody.html) implementation which supports streaming for the Rust HTTP library [hyper](https://hyper.rs/).
8+
9+
[Docs](https://docs.rs/stream-body)
10+
11+
## Example
12+
13+
```rust
14+
use stream_body;
15+
16+
```
17+
18+
## Contributing
19+
20+
Your PRs and stars are always welcome.

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#[cfg(test)]
2+
mod tests {
3+
#[test]
4+
fn it_works() {
5+
assert_eq!(2 + 2, 4);
6+
}
7+
}

0 commit comments

Comments
 (0)