Skip to content

Commit 5067d79

Browse files
authored
Finish porting from old repo & make no_std (#1)
1 parent b8435bd commit 5067d79

15 files changed

Lines changed: 560 additions & 3 deletions

File tree

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# These owners will be the default owners for everything in
2+
# the repo. Unless a later match takes precedence,
3+
# @global-owner1 and @global-owner2 will be requested for
4+
# review when someone opens a pull request.
5+
* @expede
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Bug Report
2+
description: File a bug report.
3+
title: "[Bug]: "
4+
labels: ["bug", "triage"]
5+
projects: ["automerge/wasm_utils"]
6+
assignees:
7+
- octocat
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: |
12+
Thanks for taking the time to fill out this bug report!
13+
- type: textarea
14+
id: what-happened
15+
attributes:
16+
label: What happened?
17+
description: Also tell us, what did you expect to happen?
18+
placeholder: Tell us what you see!
19+
value: "A bug happened!"
20+
validations:
21+
required: true
22+
- type: input
23+
id: version
24+
attributes:
25+
label: Version
26+
description: What version of our software are you running?
27+
validations:
28+
required: true
29+
- type: dropdown
30+
id: libs
31+
attributes:
32+
label: Which libraries in this workspace are impacted?
33+
multiple: true
34+
options:
35+
- from_js_ref
36+
- wasm_refgen
37+
validations:
38+
required: true
39+
- type: dropdown
40+
id: environment
41+
attributes:
42+
label: On which environment did you encounter this on?
43+
multiple: true
44+
options:
45+
- Firefox
46+
- Chrome
47+
- Safari
48+
- Microsoft Edge
49+
- Brave
50+
- Electron
51+
- Node.js
52+
- Deno
53+
- Cloudflare Workers
54+
- AWS Lambda
55+
- System code
56+
- Other
57+
- type: dropdown
58+
id: platform
59+
attributes:
60+
label: Which OSes have you noticed the issue on?
61+
multiple: true
62+
options:
63+
- macOS
64+
- Window
65+
- Ubuntu
66+
- Debian
67+
- Fedora
68+
- Arch
69+
- NixOS
70+
- Other (please include in notes)
71+
- type: textarea
72+
id: logs
73+
attributes:
74+
label: Relevant log output
75+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
76+
render: shell
77+
- type: checkboxes
78+
id: terms
79+
attributes:
80+
label: Code of Conduct
81+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com).
82+
options:
83+
- label: I agree to follow this project's Code of Conduct
84+
required: true
85+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/cargo-audit.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Audit Dependencies"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
# Run if workflow changes
8+
- '.github/workflows/audit.yml'
9+
# Run on changed dependencies
10+
- '**/Cargo.toml'
11+
- '**/Cargo.lock'
12+
# Run if the configuration file changes
13+
- '**/audit.toml'
14+
# Rerun periodicly to pick up new advisories
15+
schedule:
16+
- cron: '0 0 * * *'
17+
# Run manually
18+
workflow_dispatch:
19+
pull_request:
20+
21+
jobs:
22+
audit:
23+
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
issues: write
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions-rust-lang/audit@v1
30+
name: Audit Rust Dependencies
31+
# with:
32+
# Comma separated list of issues to ignore
33+
# ignore: RUSTSEC-2020-0036

.github/workflows/dictionary.txt

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
APIs
2+
ATProto
3+
Auth
4+
Automerge
5+
BCP
6+
BChaCha
7+
BeeKEM
8+
Beelay
9+
BigCo
10+
CGKA
11+
CRDT
12+
CRDTs
13+
ChaCha
14+
ChaCha's
15+
Cohn-Gordon
16+
Crypto
17+
Cryptree
18+
DCGKA
19+
DCGKA's
20+
DNS
21+
Dev
22+
ECDH
23+
EE
24+
EdDSA
25+
FIXME
26+
GroupId
27+
HChaCha
28+
Invariants
29+
JS
30+
JS-imported
31+
JS-representation
32+
Keyhive
33+
Keyoxide
34+
MLS
35+
Memoization
36+
MiCKey
37+
Nonces
38+
OCAP's
39+
OCap
40+
OpenPGP
41+
PKI
42+
PN
43+
PQC
44+
PeerId
45+
PoLA
46+
README
47+
RLE
48+
RPC
49+
SChaCha
50+
SDK
51+
SPKI
52+
Sedimentree
53+
Sedimentrees
54+
ShareSecretKeys
55+
Stateful
56+
TLS
57+
TODO
58+
Traceback
59+
TreeKEM
60+
TypeScript
61+
Wasm
62+
WebAssembly
63+
WebCrypto
64+
XChaCha
65+
al
66+
assignees
67+
async
68+
auth
69+
authN
70+
authZ
71+
authn
72+
authz
73+
backoff
74+
bchacha-note
75+
bindgen
76+
blake
77+
ciphertext
78+
cleartext
79+
composable
80+
concap
81+
crypto
82+
cryptographic
83+
cryptographically
84+
data's
85+
decrypt
86+
decrypted
87+
decrypting
88+
deduplicate
89+
delegator
90+
edgenames
91+
encrypter
92+
encryptment
93+
et
94+
expede
95+
faq
96+
fs
97+
html
98+
https
99+
img
100+
invariant
101+
invariants
102+
keyhive
103+
linearizability
104+
lookups
105+
mTLS
106+
macOS
107+
md
108+
mixnet
109+
namespaced
110+
natively
111+
nodejs
112+
non-extractable
113+
npm
114+
ocap
115+
perf
116+
petnames
117+
plaintext
118+
pre-alpha
119+
preimage
120+
prekey
121+
priori
122+
probabilistically
123+
recurse
124+
repo
125+
revoker
126+
sedimentree
127+
sedimentrees
128+
sexualized
129+
sneakernets
130+
socio-economic
131+
stateful
132+
statefulness
133+
struct
134+
struct's
135+
subgraph
136+
subpath
137+
subsumptions
138+
subtype
139+
subtyping
140+
tombstoned
141+
tradeoffs
142+
unwieldly
143+
upcasts
144+
www

.github/workflows/quality.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Code Quality Checks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build-lint-test-audit:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Build
21+
run: cargo build --verbose
22+
- name: Build with Test Utils
23+
run: cargo build --verbose
24+
- name: Check
25+
run: cargo check --verbose
26+
- name: Clippy
27+
run: cargo clippy --all-targets -- -D warnings

.github/workflows/spellcheck.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "spellcheck"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
jobs:
9+
spellcheck:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: matheus23/md-spellcheck-action@v4.2.2
14+
with:
15+
files-to-check: "**/*.md"
16+
words-to-ignore-file: ".github/workflows/dictionary.txt"

.github/workflows/test_host.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Test on Host
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build-lint-test-audit:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Test
21+
run: cargo test --workspace --verbose

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.zed/
2+
3+
# Generated by Cargo
4+
# will have compiled files and executables
5+
debug/
6+
target/
7+
/target/
8+
Cargo.lock
9+
# These are backup files generated by rustfmt
10+
**/*.rs.bk
11+
12+
# MSVC Windows builds of rustc generate these, which store debugging information
13+
*.pdb
14+
15+
# Ignore local environment settings
16+
.envrc.custom
17+
.direnv
18+
19+
# Other files + dirs
20+
private
21+
*.temp
22+
*.tmp
23+
.history
24+
.DS_Store
25+
.wireit
26+
.nyc_output
27+
tests/report
28+
node_modules
29+
dist
30+
CLAUDE.md

0 commit comments

Comments
 (0)