Skip to content
Permalink
Branch: ln-v0.4.1
Commits on Oct 9, 2019
  1. Port to pin-project

    vorot93 authored and tikue committed Oct 9, 2019
  2. Use the JSON transport in examples

    vorot93 authored and tikue committed Oct 9, 2019
  3. Add Unpin note

    vorot93 authored and tikue committed Oct 8, 2019
  4. Upgrade json-transport to Tokio 0.2

    vorot93 authored and tikue committed Aug 23, 2019
Commits on Oct 3, 2019
  1. Do not serialize _non_exhaustive field

    vorot93 authored and tikue committed Oct 3, 2019
Commits on Oct 2, 2019
  1. Remove remaining feature flags

    vorot93 authored and tikue committed Oct 1, 2019
Commits on Aug 30, 2019
  1. tokio 0.2.0-alpha.4

    vorot93 authored and tikue committed Aug 30, 2019
Commits on Aug 29, 2019
  1. Clippy fixes

    vorot93 authored and tikue committed Aug 29, 2019
  2. Cut type_alias_impl_trait feature flag

    vorot93 authored and tikue committed Aug 29, 2019
  3. Update to Tokio 0.3.0-alpha.3

    vorot93 authored and tikue committed Aug 29, 2019
Commits on Aug 20, 2019
  1. tokio 0.2.0-alpha.2

    vorot93 authored and tikue committed Aug 19, 2019
Commits on Aug 19, 2019
  1. Format code with rustfmt

    vorot93 authored and tikue committed Aug 19, 2019
Commits on Aug 14, 2019
  1. Fix comment in example service

    tikue committed Aug 14, 2019
    It referred to bincode instead of json.
Commits on Aug 13, 2019
  1. Don't mention 'static optional in readme

    tikue committed Aug 13, 2019
    This isn't supported by the service attribute.
Commits on Aug 9, 2019
  1. Don't enable serde1 by default. I forgot it gives bad compile errors …

    tikue committed Aug 9, 2019
    …to people who don't have serde in their Cargo.toml.
  2. Use real crate names rather than internal aliases. It's less confusin…

    tikue committed Aug 9, 2019
    …g for people reading examples.
  3. Update tokio to v0.2.0-alpha.1

    tikue committed Aug 9, 2019
    As part of this, I made an optional tokio feature which, when enabled,
    adds utility functions that spawn on the default tokio executor. This
    allows for the removal of the runtime crate.
    
    On the one hand, this makes the spawning utils slightly less generic. On
    the other hand:
    
    - The fns are just helpers and are easily rewritten by the user.
    - Tokio is the clear dominant futures executor, so most people will just
      use these versions.
Commits on Aug 7, 2019
  1. Don't bake in Send + 'static.

    tikue committed Jul 22, 2019
    Send + 'static was baked in to make it possible to spawn futures onto
    the default executor. We can accomplish the same thing by offering
    helper fns that do the spawning while not requiring it for the rest of
    the functionality.
    
    Fixes google#212
Commits on Aug 5, 2019
  1. Merge pull request google#248 from tikue/service-idents

    tikue committed Aug 5, 2019
    With this change, the service definitions don't need to be isolated in their own modules.
    
    Given:
    
    ```rust
    #[tarpc::service]
    trait World { ... }
    ```
    
    Before this would generate the following items
    ------
    - `trait World`
    - `fn serve`
    - `struct Client`
    - `fn new_stub`
    
    `// Implementation details below`
    - `enum Request`
    - `enum Response`
    - `enum ResponseFut`
    
    And now these items
    ------
    - `trait World {    ...    fn serve }`
    - `struct WorldClient ... impl WorldClient {    ...    async fn new }`
    
    `// Implementation details below`
    - `enum WorldRequest`
    - `enum WorldResponse`
    - `enum WorldResponseFut`
    - `struct ServeWorld` (new manual closure impl because you can't use impl Trait in trait fns)
    ```
Commits on Jul 31, 2019
  1. Choose a slightly less obvious name for Serve impl.

    tikue committed Jul 31, 2019
    To hopefully avoid most collisions.
  2. Move generated functions under their corresponding items.

    tikue committed Jul 31, 2019
    - fn serve -> Service::serve
    - fn new_stub -> Client::new
    
    This allows the generated function names to remain consistent across
    service definitions while preventing collisions.
Commits on Jul 30, 2019
  1. Add service name to generated items.

    tikue committed Jul 23, 2019
    With this change, the service definitions don't need to be isolated in their own modules.
  2. Remove macros.rs

    tikue committed Jul 30, 2019
  3. Remove service_registry example

    tikue committed Jul 30, 2019
  4. cargo fmt

    tikue committed Jul 30, 2019
Older
You can’t perform that action at this time.