Skip to content

Instantly share code, notes, and snippets.

View djc's full-sized avatar
🦀

Dirkjan Ochtman djc

🦀
View GitHub Profile
@djc
djc / main.rs
Created February 6, 2022 21:33
opentelemetry-stackdriver example
use std::env;
use std::net::SocketAddr;
use std::str::FromStr;
use async_trait::async_trait;
use gcp_auth::AuthenticationManager;
use mendes::application::{Context, Responder, Server};
use mendes::http::request::Parts;
use mendes::http::{HeaderMap, Response, StatusCode};
use mendes::hyper::Body;
@djc
djc / 0.7.md
Last active February 25, 2021 14:20

We are happy to announce the release of 0.7.0 of Quinn, our pure-Rust implementation of the QUIC protocol, the next generation TCP replacement protocol currently being standardized at the IETF.

After 10 months of development since the release of 0.6.0, we finally have a new release which upgrades the protocol to draft-29 (with support for draft 32). It has additionally received many performance improvements (especially on Linux), is much more robust, provides a number of new APIs to inspect connection state, and traits that can be used to customize behavior. Our quinn crate has been updated to depend on tokio 1.

The focus of our HTTP/3 implementation work has shifted to the h3 crate.

Important changes:

  • Update to Tokio 1, rustls 0.19 and bytes 1 (#873, with fixes in #995 thanks to @geieredgar)
  • Update to draft 29 with support for draft 32 (#812, #879)
{"data":{"__schema":{"queryType":{"name":"Query"},"mutationType":{"name":"Mutation"},"subscriptionType":null,"types":[{"kind":"SCALAR","name":"Boolean","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"__InputValue","description":null,"fields":[{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"__Type","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"defaultValue","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields
extern crate diesel;
extern crate dotenv;
extern crate futures;
extern crate hyper;
extern crate juniper;
extern crate r2d2;
extern crate r2d2_diesel;
extern crate serde;
extern crate serde_json;
extern crate trackpay;

Keybase proof

I hereby claim:

  • I am djc on github.
  • I am djc (https://keybase.io/djc) on keybase.
  • I have a public key whose fingerprint is 25BB BAC1 13C1 BFD5 AA59 4A4C 9F96 B929 3038 0381

To claim this, I am signing this object:

@djc
djc / protocol
Last active December 28, 2015 00:19
.. Licensed under the Apache License, Version 2.0 (the "License"); you may not
.. use this file except in compliance with the License. You may obtain a copy of
.. the License at
..
.. http://www.apache.org/licenses/LICENSE-2.0
..
.. Unless required by applicable law or agreed to in writing, software
.. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
.. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
.. License for the specific language governing permissions and limitations under