Skip to content

Commit 82a1afd

Browse files
committed
.
0 parents  commit 82a1afd

File tree

10 files changed

+517
-0
lines changed

10 files changed

+517
-0
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of
9+
experience,
10+
education, socio-economic status, nationality, personal appearance, race,
11+
religion, or sexual identity and orientation.
12+
13+
## Our Standards
14+
15+
Examples of behavior that contributes to creating a positive environment
16+
include:
17+
18+
- Using welcoming and inclusive language
19+
- Being respectful of differing viewpoints and experiences
20+
- Gracefully accepting constructive criticism
21+
- Focusing on what is best for the community
22+
- Showing empathy towards other community members
23+
24+
Examples of unacceptable behavior by participants include:
25+
26+
- The use of sexualized language or imagery and unwelcome sexual attention or
27+
advances
28+
- Trolling, insulting/derogatory comments, and personal or political attacks
29+
- Public or private harassment
30+
- Publishing others' private information, such as a physical or electronic
31+
address, without explicit permission
32+
- Other conduct which could reasonably be considered inappropriate in a
33+
professional setting
34+
35+
36+
## Our Responsibilities
37+
38+
Project maintainers are responsible for clarifying the standards of acceptable
39+
behavior and are expected to take appropriate and fair corrective action in
40+
response to any instances of unacceptable behavior.
41+
42+
Project maintainers have the right and responsibility to remove, edit, or
43+
reject comments, commits, code, wiki edits, issues, and other contributions
44+
that are not aligned to this Code of Conduct, or to ban temporarily or
45+
permanently any contributor for other behaviors that they deem inappropriate,
46+
threatening, offensive, or harmful.
47+
48+
## Scope
49+
50+
This Code of Conduct applies both within project spaces and in public spaces
51+
when an individual is representing the project or its community. Examples of
52+
representing a project or community include using an official project e-mail
53+
address, posting via an official social media account, or acting as an appointed
54+
representative at an online or offline event. Representation of a project may be
55+
further defined and clarified by project maintainers.
56+
57+
## Enforcement
58+
59+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
60+
reported by contacting the project team at [email protected], or through
61+
IRC. All complaints will be reviewed and investigated and will result in a
62+
response that is deemed necessary and appropriate to the circumstances. The
63+
project team is obligated to maintain confidentiality with regard to the
64+
reporter of an incident.
65+
Further details of specific enforcement policies may be posted separately.
66+
67+
Project maintainers who do not follow or enforce the Code of Conduct in good
68+
faith may face temporary or permanent repercussions as determined by other
69+
members of the project's leadership.
70+
71+
## Attribution
72+
73+
This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
74+
available at
75+
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

.github/CONTRIBUTING.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Contributing
2+
Contributions include code, documentation, answering user questions, running the
3+
project's infrastructure, and advocating for all types of users.
4+
5+
The project welcomes all contributions from anyone willing to work in good faith
6+
with other contributors and the community. No contribution is too small and all
7+
contributions are valued.
8+
9+
This guide explains the process for contributing to the project's GitHub
10+
Repository.
11+
12+
- [Code of Conduct](#code-of-conduct)
13+
- [Bad Actors](#bad-actors)
14+
15+
## Code of Conduct
16+
The project has a [Code of Conduct](./CODE_OF_CONDUCT.md) that *all*
17+
contributors are expected to follow. This code describes the *minimum* behavior
18+
expectations for all contributors.
19+
20+
As a contributor, how you choose to act and interact towards your
21+
fellow contributors, as well as to the community, will reflect back not only
22+
on yourself but on the project as a whole. The Code of Conduct is designed and
23+
intended, above all else, to help establish a culture within the project that
24+
allows anyone and everyone who wants to contribute to feel safe doing so.
25+
26+
Should any individual act in any way that is considered in violation of the
27+
[Code of Conduct](./CODE_OF_CONDUCT.md), corrective actions will be taken. It is
28+
possible, however, for any individual to *act* in such a manner that is not in
29+
violation of the strict letter of the Code of Conduct guidelines while still
30+
going completely against the spirit of what that Code is intended to accomplish.
31+
32+
Open, diverse, and inclusive communities live and die on the basis of trust.
33+
Contributors can disagree with one another so long as they trust that those
34+
disagreements are in good faith and everyone is working towards a common
35+
goal.
36+
37+
## Bad Actors
38+
All contributors to tacitly agree to abide by both the letter and
39+
spirit of the [Code of Conduct](./CODE_OF_CONDUCT.md). Failure, or
40+
unwillingness, to do so will result in contributions being respectfully
41+
declined.
42+
43+
A *bad actor* is someone who repeatedly violates the *spirit* of the Code of
44+
Conduct through consistent failure to self-regulate the way in which they
45+
interact with other contributors in the project. In doing so, bad actors
46+
alienate other contributors, discourage collaboration, and generally reflect
47+
poorly on the project as a whole.
48+
49+
Being a bad actor may be intentional or unintentional. Typically, unintentional
50+
bad behavior can be easily corrected by being quick to apologize and correct
51+
course *even if you are not entirely convinced you need to*. Giving other
52+
contributors the benefit of the doubt and having a sincere willingness to admit
53+
that you *might* be wrong is critical for any successful open collaboration.
54+
55+
Don't be a bad actor.

.github/workflows/ci.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- staging
8+
- trying
9+
10+
env:
11+
RUSTFLAGS: -Dwarnings
12+
13+
jobs:
14+
build_and_test:
15+
name: Build and test
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest, macOS-latest]
20+
rust: [nightly]
21+
22+
steps:
23+
- uses: actions/checkout@master
24+
25+
- name: Install ${{ matrix.rust }}
26+
uses: actions-rs/toolchain@v1
27+
with:
28+
toolchain: ${{ matrix.rust }}
29+
override: true
30+
31+
- name: check
32+
uses: actions-rs/cargo@v1
33+
with:
34+
command: check
35+
args: --all --bins --examples --features hyperium_http
36+
37+
- name: check unstable
38+
uses: actions-rs/cargo@v1
39+
with:
40+
command: check
41+
args: --all --benches --bins --examples --tests --features hyperium_http
42+
43+
- name: tests
44+
uses: actions-rs/cargo@v1
45+
with:
46+
command: test
47+
args: --all
48+
49+
check_fmt_and_docs:
50+
name: Checking fmt and docs
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@master
54+
- uses: actions-rs/toolchain@v1
55+
with:
56+
toolchain: nightly
57+
components: rustfmt, clippy
58+
override: true
59+
60+
- name: fmt
61+
run: cargo fmt --all -- --check
62+
63+
- name: Docs
64+
run: cargo doc

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
target/
2+
tmp/
3+
Cargo.lock
4+
.DS_Store

Cargo.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[package]
2+
name = "async-session"
3+
version = "1.0.0"
4+
license = "MIT OR Apache-2.0"
5+
repository = "https://github.com/http-rs/async-session"
6+
documentation = "https://docs.rs/async-session"
7+
description = "Async session support with pluggable middleware"
8+
readme = "README.md"
9+
edition = "2018"
10+
keywords = []
11+
categories = []
12+
authors = [
13+
"Yoshua Wuyts <[email protected]>"
14+
]
15+
16+
[features]
17+
18+
[dependencies]
19+
20+
[dev-dependencies]

0 commit comments

Comments
 (0)