Skip to content

Commit

Permalink
feat(type-params): ground work for upload media
Browse files Browse the repository at this point in the history
This might mean we need additional type parameters, but I will see how
it's going to work out.

In theory, we could define a new trait for Seek+Read, but this would
mean that we couldn't contain owned streams.

For max flexibility, it's better to have additional type parameters
and use BorrowMut to allow ownership, and borrow.
  • Loading branch information
Byron committed Mar 8, 2015
1 parent a7f93a9 commit 020300a
Show file tree
Hide file tree
Showing 10 changed files with 1,096 additions and 947 deletions.
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ name = "cmn"
path = "src/rust/lib.rs"

[dependencies]
# Just to get hyper to work !
openssl = "= 0.4.3"
# Just to get hyper to work !
cookie = "= 0.1.13"
hyper = "*"
rustc-serialize = "*"
yup-oauth2 = "*"
Expand Down
6 changes: 6 additions & 0 deletions gen/youtube3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ let mut hub = YouTube::new(hyper::Client::new(), auth);
* Optionals needed for Json, otherwise I'd happily drop them
* explain that examples use all response parts, even though they are shown for request values

## About builder arguments

* pods are copy
* strings are &str
* request values are borrowed

[builder-pattern]: http://en.wikipedia.org/wiki/Builder_pattern
[google-go-api]: https://github.com/google/google-api-go-client

Expand Down
4 changes: 0 additions & 4 deletions gen/youtube3/cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ license = "MIT"
keywords = ["youtube", "google", "protocol", "web", "api"]

[dependencies]
# Just to get hyper to work !
openssl = "= 0.4.3"
# Just to get hyper to work !
cookie = "= 0.1.13"
hyper = "*"
rustc-serialize = "*"
yup-oauth2 = "*"
Expand Down
Loading

0 comments on commit 020300a

Please sign in to comment.