Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add back missing elements from merge PR #1

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2d826a7
Fix stack overflow in Error's Display impl (#47)
AzureMarker Dec 22, 2020
21da69d
Update README.md
Feb 12, 2021
adc8d38
Update to Tokio 1.0
Feb 6, 2021
8d42308
Bump to v0.6.0
Mar 16, 2021
df02b8e
Switch to GitHub actions
Mar 26, 2021
f2b6d6e
Format Rust code using rustfmt
github-actions[bot] Mar 26, 2021
a2ba2e0
Update README.md
Mar 26, 2021
286689d
Update README.md
Mar 27, 2021
533cdd0
Windows CI
Mar 27, 2021
8bcf3df
Upgrade to `base64 0.13`.
rneswold Aug 3, 2021
66186ca
nix direnv/shell
Sep 12, 2021
da596b6
feat: add implementation to support safari web push (#57)
hortopan Nov 5, 2021
48caef0
Bump to v0.6.2
Nov 5, 2021
8abd89b
Migrate to new maintainers
HarryET Aug 15, 2022
bfe8ef3
fix: Adds tcp feature to hyper (#61)
ajevans99 Aug 15, 2022
cad6030
Feat/deserialize and certificate parts (#3)
jrconlin Sep 22, 2022
e975867
v0.7 (#63)
HarryET Dec 22, 2022
5763c69
chore: Merge upstream
HarryET Dec 22, 2022
7d75c60
chore: More merges from upstream
HarryET Dec 22, 2022
497ad03
chore: More merges from upstream
HarryET Dec 22, 2022
36f18bd
chore: Remove old files
HarryET Dec 22, 2022
7de2a71
fix: Missing derive
HarryET Dec 22, 2022
9f6dc1c
fix: misc issues
HarryET Dec 22, 2022
c08f146
feat: Misc Changes from Mozilla Services
jrconlin Dec 22, 2022
6c7b605
chore: Bump version for release
HarryET Dec 22, 2022
443a6dc
chore: Bump lockfile
HarryET Dec 22, 2022
910c81f
chore: update README.md example
HarryET Feb 19, 2023
d0236c3
fix: hotfix
Rakowskiii Mar 1, 2023
112da7c
Merge branch 'master' of github.com:WalletConnect/a2 into feat/update
jrconlin May 22, 2023
f41a374
feat: Add back missing elements from merge PR
jrconlin May 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if command -v nix-shell &> /dev/null
then
use nix
fi
25 changes: 25 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Description

<!--
Please include:
* summary of the changes and the related issue
* relevant motivation and context
-->

Resolves # (issue)

## How Has This Been Tested?

<!--
Please:
* describe the tests that you ran to verify your changes.
* provide instructions so we can reproduce.
-->

<!-- If valid for smoke test on feature add screenshots -->

## Due Dilligence

* [ ] Breaking change
* [ ] Requires a documentation update
* [ ] Requires a e2e/integration test update
119 changes: 119 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: ci

on:
pull_request:
paths-ignore:
- '.github/**'
- 'README.md'

push:
branches: ['main']
paths-ignore:
- '.github/**'
- 'README.md'

concurrency:
# Support push/pr as event types with different behaviors each:
# 1. push: queue up builds
# 2. pr: only allow one run per PR
group: ${{ github.workflow }}-${{ github.event.type }}${{ github.event.pull_request.number }}
# If there is already a workflow running for the same pull request, cancel it
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
tasks:
name: "[${{ matrix.os }}] ${{ matrix.cargo.name }}"
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
rust:
- stable
cargo:
- name: "Clippy"
cmd: clippy
args: -- -D clippy::all
cache: {}
- name: "Clippy (ring feature)"
cmd: clippy
args: --no-default-features --features ring -- -D clippy::all
cache: {}
- name: "Formatting"
cmd: fmt
args: -- --check
cache: {}
- name: "Unit Tests"
cmd: test
args: --all-features
cache: { sharedKey: "tests" }
- name: "Unit Tests (ring feature)"
cmd: test
args: --no-default-features --features ring
cache: { sharedKey: "tests-ring" }
include:
- os: ubuntu-latest
sccache-path: /home/runner/.cache/sccache
env:
RUST_BACKTRACE: full
RUSTC_WRAPPER: sccache
SCCACHE_CACHE_SIZE: 1G
SCCACHE_DIR: ${{ matrix.sccache-path }}
steps:
# Checkout code
- name: "Git checkout"
uses: actions/checkout@v2

# Install sccache
- name: "Install sccache"
if: matrix.os == 'ubuntu-latest'
env:
SCCACHE_URL: https://github.com/mozilla/sccache/releases/download
SCCACHE_VERSION: v0.2.15
run: |
SCCACHE_FILE=sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl
curl -sSL "$SCCACHE_URL/$SCCACHE_VERSION/$SCCACHE_FILE.tar.gz" | tar xz
install -vDm 755 "$SCCACHE_FILE/sccache" "$HOME/.local/bin/sccache"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"

# Install Rust toolchain
- name: "Install Rust ${{ matrix.rust }}"
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true

# Rebuild cache
- name: Cache cargo registry
uses: Swatinem/rust-cache@3bb3a9a087029c7bc392586cdc88cb6f66b9c6ef
with: ${{ matrix.cargo.cache }}
continue-on-error: false

- name: Cache sccache
uses: actions/cache@v2
continue-on-error: false
with:
path: ${{ matrix.sccache-path }}
key: ${{ runner.os }}-sccache-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-sccache-

# Run job
- name: "Start sccache server"
run: |
sccache --stop-server || true
sccache --start-server

- name: "Task ${{ matrix.cargo.name }}"
uses: actions-rs/cargo@v1
with:
command: ${{ matrix.cargo.cmd }}
args: ${{ matrix.cargo.args }}

- name: "Print sccache stats"
run: sccache --show-stats

- name: "Stop sccache server"
run: sccache --stop-server || true
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@
# Generated by Cargo
/target/

# IntelliJ IDEA
/.idea/
# Editors
.idea
*.iml

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock
Cargo.lock
.vscode
.atom

# Certificate files
*.der
Expand All @@ -28,3 +26,5 @@ Cargo.lock

/examples/*.p8
/examples/*.p12

.direnv
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .travis/docs.sh

This file was deleted.

92 changes: 50 additions & 42 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,73 +1,81 @@
# Changelog
# Changelog

## v0.5.2
## v0.6.2

- Fix `TooManyProviderTokenUpdates` issue [#44](https://github.com/pimeys/a2/pull/44)
- Add support for Safari web push

## v0.5.1
## v0.6.0

- Enforcing static lifetimes for client send [#43](https://github.com/pimeys/a2/pull/43)
- Update to Tokio 1.0

## v0.5.0
## v0.5.2

- Stable Hyper 0.13 and Tokio 0.2 support
- Fix `TooManyProviderTokenUpdates` issue [#44](https://github.com/pimeys/a2/pull/44)

## v0.5.0-alpha.6
## v0.5.1

- Fix a bug in ALPN resolving.
- Enforcing static lifetimes for client send [#43](https://github.com/pimeys/a2/pull/43)

## v0.5.0-alpha.5
## v0.5.0

- And down to async-std's new `ToSocketAddrs` resolver
- Stable Hyper 0.13 and Tokio 0.2 support

## v0.5.0-alpha.4
## v0.5.0-alpha.6

- Switch to Hyper's GaiResolver to go around of a bug in the latest nightly.
- Fix a bug in ALPN resolving.

## v0.5.0-alpha.1
## v0.5.0-alpha.5

- Update to `std::future` and async/await, requiring a nightly compiler for now.
- And down to async-std's new `ToSocketAddrs` resolver

## v0.4.1
## v0.5.0-alpha.4

- Fix token_client example not building due to unresolvable `as_ref()`. [#35](https://github.com/pimeys/a2/pull/35)
- Move indoc to dev-dependencies so that crates depending on us don't need it. [#36](https://github.com/pimeys/a2/pull/36)
- Move pretty_env_logger to dev-dependencies, it's not useful to crates depending on us. [#37](https://github.com/pimeys/a2/pull/37)
- Remove unused tokio-io dependency. [#38](https://github.com/pimeys/a2/pull/38)
- Switch to Hyper's GaiResolver to go around of a bug in the latest nightly.

## v0.4.0
## v0.5.0-alpha.1

Introduces two changes that are a bit more drastic and hence increasing the
major version. The 2018 syntax requires a Rust compiler version 1.31 or newer
and the locking primitive hasn't been measured with high traffic yet in a2.
- Update to `std::future` and async/await, requiring a nightly compiler for now.

- Upgrade to Rust 2018 syntax [#29](https://github.com/pimeys/a2/pull/29)
- Switch from deprecated crossbeam ArcCell to parking_lot RwLock
[#32](https://github.com/pimeys/a2/pull/32)
## v0.4.1

## v0.3.5
- Fix token_client example not building due to unresolvable `as_ref()`. [#35](https://github.com/pimeys/a2/pull/35)
- Move indoc to dev-dependencies so that crates depending on us don't need it. [#36](https://github.com/pimeys/a2/pull/36)
- Move pretty_env_logger to dev-dependencies, it's not useful to crates depending on us. [#37](https://github.com/pimeys/a2/pull/37)
- Remove unused tokio-io dependency. [#38](https://github.com/pimeys/a2/pull/38)

- Implement `fmt::Display` for `ErrorReason` [#28](https://github.com/pimeys/a2/pull/28)
## v0.4.0

## v0.3.4
Introduces two changes that are a bit more drastic and hence increasing the
major version. The 2018 syntax requires a Rust compiler version 1.31 or newer
and the locking primitive hasn't been measured with high traffic yet in a2.

- Changing the author email due to company breakdown to the private one.
- Upgrade to Rust 2018 syntax [#29](https://github.com/pimeys/a2/pull/29)
- Switch from deprecated crossbeam ArcCell to parking_lot RwLock
[#32](https://github.com/pimeys/a2/pull/32)

## v0.3.3
## v0.3.5

- Taking the alpn connector out to its own crate, using tokio-dns for resolving
- Implement `fmt::Display` for `ErrorReason` [#28](https://github.com/pimeys/a2/pull/28)

## v0.3.2
## v0.3.4

- OK responses don't have a body, so we don't need to handle it and gain a bit
more performance
- Changing the author email due to company breakdown to the private one.

## v0.3.1
## v0.3.3

- Bunch of examples to the builder documentation
- Taking the alpn connector out to its own crate, using tokio-dns for resolving

## v0.3.0
## v0.3.2

- Convert the API to not clone the input data, using references until
converting to JSON, remove tokio-service dependency
[#25](https://github.com/pimeys/a2/pull/25)
- OK responses don't have a body, so we don't need to handle it and gain a bit
more performance

## v0.3.1

- Bunch of examples to the builder documentation

## v0.3.0

- Convert the API to not clone the input data, using references until
converting to JSON, remove tokio-service dependency
[#25](https://github.com/pimeys/a2/pull/25)
Loading