Lyle Mantooth
108162fcf8
imp: accept any string-like parameter
...
Use the power of the `AsRef` trait to take generic parameters for
several API functions. This makes the API more ergonomic because the
callers may pass in static `str` slices or references to owned `String`s
or even more exotic things like a `Cow`, all based on their particular
situation.
Update the tests and examples to use the most natural types they have
available.
Fixes #77 . No existing code should break, as `&String` implements
`AsRef<str>` and `AsRef<Path>`
2019-04-03 09:01:28 -04:00
Lewin Bormann
fa66623810
chore(version): Depend on hyper-native-tls 0.3 to use openssl 1.1
2019-01-27 16:27:09 +01:00
Jamie Turner
ab4b2c2fd4
Rust 2018 edition modifications.
2019-01-04 12:43:19 -08:00
Igor Gnatenko
9b5bbf5459
deps: hyper-rustls → hyper-native-tls
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com >
2018-07-25 22:51:37 +02:00
Lewin Bormann
b6732329a0
chore(api): Update use of pubsub client API.
2018-03-24 20:42:04 +01:00
Lewin Bormann
8e7060b041
fix(deps): Fix hyper_rustls dependency for service_account example.
2017-06-22 21:11:32 +02:00
Lewin Bormann
7da7f39085
chore(deps): Move pubsub example to hyper 0.10.
2017-02-04 17:03:48 +01:00
Lewin Bormann
59193d4e2d
chore(deps): Upgraded examples to hyper=0.10
...
This should get rid of openssl-sys 0.7 once and for all (#51 ).
2017-02-02 19:27:43 +01:00
Lewin Bormann
6a74ec6962
test(examples): Build examples during CI.
2017-01-30 19:07:46 +01:00
Lewin Bormann
01b933a1c6
chore(version): Bump version to 1.0.0
2016-10-09 09:56:23 +02:00
Lewin Bormann
80b21bdddb
fix(example): Use crates.io version of google-pubsub1 for examples
...
This was a local change that leaked into a commit.
2016-09-28 22:10:49 +02:00
Lewin Bormann
bb6ce78b38
fix(review comments): Implement @Byron's suggestions on #34
2016-09-25 20:20:23 +02:00
Lewin Bormann
4ba43532aa
feat(examples): Add example for service accounts + Cloud Pubsub
...
Please note that I specified version 0.9.4 in the example crate
(anticipating the version bump)
2016-09-21 22:10:19 +02:00