Skip to content

Commit 9c66c95

Browse files
committed
Initial commit
0 parents  commit 9c66c95

27 files changed

+1654
-0
lines changed

.appveyor.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
install:
2+
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
3+
- if not defined RUSTFLAGS rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly
4+
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
5+
- rustc -V
6+
- cargo -V
7+
8+
build: false
9+
10+
test_script:
11+
- cargo test --locked

.cargo-ok

Whitespace-only changes.

.github/workflows/deploy.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
env:
9+
CF_EMAIL: ${{ secrets.CF_EMAIL }}
10+
CF_API_KEY: ${{ secrets.CF_API_KEY }}
11+
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
12+
CF_ZONE_ID: ${{ secrets.CF_ZONE_ID }}
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Create wrangler.toml
21+
run: ./scripts/make-wrangler.sh
22+
23+
- name: Publish
24+
run: ./scripts/publish.sh

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/target
2+
**/*.rs.bk
3+
bin/
4+
pkg/
5+
wasm-pack.log
6+
worker/generated/
7+
wrangler.toml

.travis.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
language: rust
2+
sudo: false
3+
4+
cache: cargo
5+
6+
matrix:
7+
include:
8+
9+
# Builds with wasm-pack.
10+
- rust: beta
11+
env: RUST_BACKTRACE=1
12+
addons:
13+
firefox: latest
14+
chrome: stable
15+
before_script:
16+
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
17+
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
18+
- cargo install-update -a
19+
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
20+
script:
21+
- cargo generate --git . --name testing
22+
# Having a broken Cargo.toml (in that it has curlies in fields) anywhere
23+
# in any of our parent dirs is problematic.
24+
- mv Cargo.toml Cargo.toml.tmpl
25+
- cd testing
26+
- wasm-pack build
27+
- wasm-pack test --chrome --firefox --headless
28+
29+
# Builds on nightly.
30+
- rust: nightly
31+
env: RUST_BACKTRACE=1
32+
before_script:
33+
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
34+
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
35+
- cargo install-update -a
36+
- rustup target add wasm32-unknown-unknown
37+
script:
38+
- cargo generate --git . --name testing
39+
- mv Cargo.toml Cargo.toml.tmpl
40+
- cd testing
41+
- cargo check
42+
- cargo check --target wasm32-unknown-unknown
43+
- cargo check --no-default-features
44+
- cargo check --target wasm32-unknown-unknown --no-default-features
45+
- cargo check --no-default-features --features console_error_panic_hook
46+
- cargo check --target wasm32-unknown-unknown --no-default-features --features console_error_panic_hook
47+
- cargo check --no-default-features --features "console_error_panic_hook wee_alloc"
48+
- cargo check --target wasm32-unknown-unknown --no-default-features --features "console_error_panic_hook wee_alloc"
49+
50+
# Builds on beta.
51+
- rust: beta
52+
env: RUST_BACKTRACE=1
53+
before_script:
54+
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
55+
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
56+
- cargo install-update -a
57+
- rustup target add wasm32-unknown-unknown
58+
script:
59+
- cargo generate --git . --name testing
60+
- mv Cargo.toml Cargo.toml.tmpl
61+
- cd testing
62+
- cargo check
63+
- cargo check --target wasm32-unknown-unknown
64+
- cargo check --no-default-features
65+
- cargo check --target wasm32-unknown-unknown --no-default-features
66+
- cargo check --no-default-features --features console_error_panic_hook
67+
- cargo check --target wasm32-unknown-unknown --no-default-features --features console_error_panic_hook
68+
# Note: no enabling the `wee_alloc` feature here because it requires
69+
# nightly for now.

CODE_OF_CONDUCT.md

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

0 commit comments

Comments
 (0)