Juan Alvarez and Lucio Franco
7eda823c9c
fix(client): Use Stream instead of TrySteam for client calls ( #61 )
2019-10-10 11:39:35 -04:00
Lucio Franco and GitHub
8cddf8a12c
chore: Prepare 0.1.0-alpha.3 release ( #65 )
2019-10-09 17:27:15 -04:00
Adam Jacob and Lucio Franco
06ff619944
feat(build): Expose prost-build type_attributes and field_attribu… ( #60 )
...
* chore: Add tags to .gitignore
When generating ctags/universal-ctags, a 'tags' file is generated. This
commit adds any generted 'tags' file to .gitignore.
* feat(build): Expose type_attribute and field_attribute
This commit exposes the `type_attribute` and `field_attribute`
configuration settings from Prost. These are useful to tweak/extend the
generated types.
For example:
```
tonic_build::configure()
.out_dir(tmp)
.format(false)
.type_attribute(".", "#[derive(Serialize, Deserialize)]")
.type_attribute(".", "#[serde(rename_all = \"camelCase\")]")
.field_attribute("in", "#[serde(rename = \"in\")]")
.compile(&["tests/protos/wellknown.proto"], &["tests/protos"])
.unwrap();
```
Would add the serde `Serialize` and `Deserialize` traits, while renaming
all the fields to camelCase, and having serde keep fields named `in`
named `in`, rather than Prost's `in_`, to every type generated by Prost.
2019-10-08 18:11:42 -04:00
Lucio Franco and GitHub
4628ff0258
chore: Prepare 0.1.0-alpha.2 release ( #58 )
...
Signed-off-by: Lucio Franco <[email protected] >
2019-10-07 22:01:59 -04:00
Lucio Franco and GitHub
01e72d9a95
chore(build): Fix wrong output type used in replace ( #50 )
2019-10-05 14:18:13 -04:00
Lucio Franco and GitHub
4e1fcece15
fix(codegen): Use wellknown types from prost-types ( #49 )
...
This change introduces the ability to let prost-build
provide the fully qualifed type path for types that
start with `google.protobuf`.
2019-10-05 13:16:09 -04:00
Lucio Franco and GitHub
4559613c37
feat(codgen): Add default implementations for the generated serve… ( #27 )
...
* Rename servce -> server
* Add default impl for server trait
2019-10-02 16:01:44 -04:00
Lucio Franco and GitHub
2670b349f9
fix(codegen): Fix Empty protobuf type and add unimplemented ( #26 )
...
* Add license attribute to tonic-build
* fix(codegen): Fix Empty protobuf type and add unimplemented
* Remove syn full feature
2019-10-01 23:46:54 -04:00
Lucio Franco and GitHub
a282b6682d
chore(release): Prepare 0.1.0-alpha.1 release ( #24 )
2019-10-01 22:13:52 -04:00
Lucio Franco and GitHub
8f80d0f6d1
chore(docs): Update tonic-build docs ( #22 )
2019-10-01 19:34:45 -04:00
Lucio Franco
a35ef96a03
Add docs to transport and refactor some api's
2019-09-29 17:04:42 -04:00
Lucio Franco
1d9e3daa07
Remove generated doc comment test
2019-09-29 10:39:57 -04:00
John Doneth and Lucio Franco
8becd257bc
More documentation generation ( #12 )
...
* generate rustdoc comments from .proto file comments
* move imports to top of file
* more docs gen
* trait docs
* more docs
* use singular doc gen fn here
* remove pesky space
2019-09-26 19:41:51 -04:00
Lucio Franco
d2355ed83c
fmt
2019-09-25 20:54:13 -04:00
John Doneth and Lucio Franco
36d0b1cb04
Generate rustdocs from .proto file comments ( #10 )
...
* generate rustdoc comments from .proto file comments
* move imports to top of file
2019-09-25 20:51:12 -04:00
John Doneth and Lucio Franco
646796f248
Add some doc examples ( #9 )
...
* doc examples for tonic::Streaming
* from http doc
* more docs
* use same export pattern
* interceptor doc WIP
* remove unfinished doc examples
* recommended changes
* remove unnecessary prost refs
2019-09-25 11:36:23 -04:00
Lucio Franco
a37640c282
Fix doctest
2019-09-24 16:09:26 -04:00
Lucio Franco
1e579d1bd4
Fix rustfmt in tonic-build
2019-09-24 15:41:09 -04:00
Lucio Franco
72a0ffbbab
Merge branch 'master' of github.com:LucioFranco/tonic
2019-09-23 21:00:41 -04:00
alce and Lucio Franco
3dbb48f9f3
Delay determining out_dir ( #3 )
2019-09-23 20:59:16 -04:00
Lucio Franco
bc500963b1
Merge branch 'master' of github.com:LucioFranco/tonic
2019-09-23 17:09:25 -04:00
John Doneth and Lucio Franco
eb0c0c286b
Improve tonic-build configuration ( #2 )
2019-09-23 09:32:44 -04:00
Lucio Franco
cccc008366
todo clean up
2019-09-22 12:45:19 -05:00
Lucio Franco
782da6f0e5
implement last interop test
2019-09-21 16:02:10 -06:00
Lucio Franco
922e480cec
Add easy connect method in codegen
2019-09-21 14:21:28 -06:00
Lucio Franco
5ded741eb6
Clean up docs
2019-09-21 11:20:30 -06:00
Lucio Franco
cd9133a41c
Doc hide codegen inner service
2019-09-21 11:13:18 -06:00
Lucio Franco
62f0285ff0
implemented server cusotm metadata
2019-09-21 10:23:31 -06:00
Lucio Franco
da279a957d
server codegen unimplemented
2019-09-20 15:39:03 -06:00
Lucio Franco
f74bba6858
Add server interop tests
2019-09-06 21:40:59 -04:00
Lucio Franco
cc8a7bfcbf
make rustfmt optional
2019-09-06 18:25:27 -04:00
Lucio Franco
cd44bf8e9f
Clean up tonic-build
2019-09-06 18:16:11 -04:00
Lucio Franco
8b548f2ea4
Nest server and client in their own mods
2019-09-06 17:52:41 -04:00
Lucio Franco
d0cfafafc6
Move codegen to build and remove macros
2019-09-06 15:19:18 -04:00
Lucio Franco
5e208d9da2
First pass at macro
2019-08-15 17:50:25 -04:00