Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hyperium/tonic
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.0-alpha.2
Choose a base ref
...
head repository: hyperium/tonic
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.0-alpha.3
Choose a head ref
  • 4 commits
  • 17 files changed
  • 4 contributors

Commits on Oct 8, 2019

  1. feat(transport): Expose more granular control of TLS configuration (#48)

    This commit reworks TLS configuration of both servers and endpoints in
    order to provide a more flexible API. We now add options to configure
    the selected TLS library using the appropriate 'native' configuration
    structures, as well as retaining the existing simplier interface which
    is compatible with both.
    
    The new API can also be easily extended to support simple interfaces for
    configuring mTLS and a range of other options without creating sprawl
    in the builders for `Server` and `Endpoint`.
    jen20 authored and LucioFranco committed Oct 8, 2019
    Configuration menu
    Copy the full SHA
    8db3961 View commit details
    Browse the repository at this point in the history
  2. 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.
    adamhjk authored and LucioFranco committed Oct 8, 2019
    Configuration menu
    Copy the full SHA
    06ff619 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2019

  1. Configuration menu
    Copy the full SHA
    8ecfd2f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8cddf8a View commit details
    Browse the repository at this point in the history
Loading