Skip to content

Commit 6d70bd8

Browse files
authored
chore(lib): initialize repo skeleton (#1)
1 parent 2188a52 commit 6d70bd8

File tree

4 files changed

+190
-0
lines changed

4 files changed

+190
-0
lines changed

.github/workflows/CI.yml

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
8+
env:
9+
RUST_BACKTRACE: 1
10+
11+
jobs:
12+
ci-pass:
13+
name: CI is green
14+
runs-on: ubuntu-latest
15+
needs:
16+
- style
17+
- test
18+
- msrv
19+
- miri
20+
- features
21+
- doc
22+
steps:
23+
- run: exit 0
24+
25+
style:
26+
name: Check Style
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v1
31+
32+
- name: Install Rust
33+
uses: actions-rs/toolchain@v1
34+
with:
35+
profile: minimal
36+
toolchain: stable
37+
override: true
38+
components: rustfmt
39+
40+
- name: cargo fmt --check
41+
uses: actions-rs/cargo@v1
42+
with:
43+
command: fmt
44+
args: --all -- --check
45+
46+
test:
47+
name: Test ${{ matrix.rust }} on ${{ matrix.os }}
48+
needs: [style]
49+
strategy:
50+
matrix:
51+
rust:
52+
- stable
53+
- beta
54+
- nightly
55+
56+
os:
57+
- ubuntu-latest
58+
- windows-latest
59+
- macOS-latest
60+
61+
runs-on: ${{ matrix.os }}
62+
63+
steps:
64+
- name: Checkout
65+
uses: actions/checkout@v1
66+
67+
- name: Install Rust (${{ matrix.rust }})
68+
uses: actions-rs/toolchain@v1
69+
with:
70+
profile: minimal
71+
toolchain: ${{ matrix.rust }}
72+
override: true
73+
74+
- name: Test
75+
uses: actions-rs/cargo@v1
76+
with:
77+
command: test
78+
79+
msrv:
80+
name: Check MSRV (${{ matrix.rust }})
81+
needs: [style]
82+
strategy:
83+
matrix:
84+
rust:
85+
- 1.49 # keep in sync with MSRV.md dev doc
86+
87+
os:
88+
- ubuntu-latest
89+
90+
runs-on: ${{ matrix.os }}
91+
92+
steps:
93+
- name: Checkout
94+
uses: actions/checkout@v1
95+
96+
- name: Install Rust (${{ matrix.rust }})
97+
uses: actions-rs/toolchain@v1
98+
with:
99+
profile: minimal
100+
toolchain: ${{ matrix.rust }}
101+
override: true
102+
103+
- name: Check
104+
uses: actions-rs/cargo@v1
105+
with:
106+
command: check
107+
108+
miri:
109+
name: Test with Miri
110+
needs: [style]
111+
runs-on: ubuntu-latest
112+
113+
steps:
114+
- name: Checkout
115+
uses: actions/checkout@v1
116+
117+
- name: Install Rust
118+
uses: actions-rs/toolchain@v1
119+
with:
120+
profile: minimal
121+
toolchain: nightly
122+
components: miri
123+
override: true
124+
125+
- name: Test
126+
# Can't enable tcp feature since Miri does not support the tokio runtime
127+
run: MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test
128+
129+
features:
130+
name: features
131+
needs: [style]
132+
runs-on: ubuntu-latest
133+
steps:
134+
- name: Checkout
135+
uses: actions/checkout@v1
136+
137+
- name: Install Rust
138+
uses: actions-rs/toolchain@v1
139+
with:
140+
profile: minimal
141+
toolchain: nightly
142+
override: true
143+
144+
- name: Install cargo-hack
145+
run: cargo install cargo-hack
146+
147+
- name: check --feature-powerset
148+
run: cargo hack check --feature-powerset --depth 2 -Z avoid-dev-deps
149+
150+
doc:
151+
name: Build docs
152+
needs: [style, test]
153+
runs-on: ubuntu-latest
154+
steps:
155+
- name: Checkout
156+
uses: actions/checkout@v1
157+
158+
- name: Install Rust
159+
uses: actions-rs/toolchain@v1
160+
with:
161+
profile: minimal
162+
toolchain: nightly
163+
override: true
164+
165+
- name: cargo doc
166+
uses: actions-rs/cargo@v1
167+
with:
168+
command: rustdoc
169+
args: -- --cfg docsrs -D broken-intra-doc-links

Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "hyper-util"
3+
version = "0.0.0"
4+
description = "hyper utilities"
5+
readme = "README.md"
6+
homepage = "https://hyper.rs"
7+
documentation = "https://docs.rs/hyper-util"
8+
repository = "https://github.com/hyperium/hyper-util"
9+
license = "MIT"
10+
authors = ["Sean McArthur <[email protected]>"]
11+
keywords = ["http", "hyper", "hyperium"]
12+
categories = ["network-programming", "web-programming::http-client", "web-programming::http-server"]
13+
edition = "2018"
14+
15+
publish = false # no accidents while in dev
16+
17+
[dependencies]

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# hyper-util
2+
3+
A collection of utilities to be do common things with hyper.

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)