Skip to content

Commit d276ffb

Browse files
committed
:contruction: temp
0 parents  commit d276ffb

20 files changed

+691
-0
lines changed

.vscode/settings.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"go.addTags": {
3+
"tags": "json,yaml",
4+
"options": "json=omitempty",
5+
"promptForTags": false,
6+
"transform": "snakecase"
7+
},
8+
"psi-header.config": {
9+
"forceToTop": true,
10+
"author": "Zoe",
11+
"authorEmail": "[email protected]",
12+
"company": "wellwell.work, LLC",
13+
"license": "Apache-2.0"
14+
},
15+
"psi-header.templates": [
16+
{
17+
"language": "*",
18+
"template": [
19+
"Copyright (c) <<year>> <<company>> by <<author>>",
20+
"",
21+
"Licensed under the <<licensename>> (the \"License\");",
22+
"You may not use this file except in compliance with the License.",
23+
"You may obtain a copy of the License at",
24+
"",
25+
" <<licenseurl>>",
26+
"",
27+
"Unless required by applicable law or agreed to in writing, software",
28+
"distributed under the License is distributed on an \"AS IS\" BASIS,",
29+
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
30+
"See the License for the specific language governing permissions and",
31+
"limitations under the License."
32+
]
33+
}
34+
]
35+
}

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<div align="center">
2+
3+
# `payone`
4+
5+
**One way to pay.**
6+
7+
</div>

worker/.appveyor.yml

Lines changed: 11 additions & 0 deletions
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

worker/.cargo-ok

Whitespace-only changes.

worker/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/target
2+
**/*.rs.bk
3+
Cargo.lock
4+
bin/
5+
pkg/
6+
wasm-pack.log
7+
worker/generated/
8+
9+
# ignore wrangler.toml
10+
wrangler.toml
11+
12+
node_modules
13+
yarn.lock

worker/.travis.yml

Lines changed: 69 additions & 0 deletions
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.

worker/CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
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

worker/Cargo.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[package]
2+
name = "payone"
3+
description = "One way to pay."
4+
license = "APL2"
5+
version = "0.1.0"
6+
authors = ["Zoe <[email protected]>"]
7+
edition = "2018"
8+
9+
[lib]
10+
crate-type = ["cdylib", "rlib"]
11+
12+
[features]
13+
default = ["console_error_panic_hook"]
14+
15+
[dependencies]
16+
cfg-if = "0.1.2"
17+
wasm-bindgen = "0.2"
18+
19+
# The `console_error_panic_hook` crate provides better debugging of panics by
20+
# logging them with `console.error`. This is great for development, but requires
21+
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
22+
# code size when deploying.
23+
console_error_panic_hook = { version = "0.1.1", optional = true }
24+
25+
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
26+
# compared to the default allocator's ~10K. It is slower than the default
27+
# allocator, however.
28+
wee_alloc = { version = "0.4.2", optional = true }
29+
30+
[dev-dependencies]
31+
wasm-bindgen-test = "0.2"
32+
33+
[profile.release]
34+
# Tell `rustc` to optimize for small code size.
35+
opt-level = "s"
36+
37+
[package.metadata.wasm-pack.profile.release]
38+
wasm-opt = false

0 commit comments

Comments
 (0)