Skip to content

Commit f9f52d3

Browse files
committed
Init
Moved from https://github.com/rust-nostr/nostr Signed-off-by: Yuki Kishimoto <[email protected]>
0 parents  commit f9f52d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+13619
-0
lines changed

.cargo/config.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[build]
2+
target = "wasm32-unknown-unknown"
3+
rustflags = ["-C", "panic=abort"]
4+
5+
[profile.release]
6+
opt-level = 'z' # Optimize for size.
7+
lto = true # Enable Link Time Optimization
8+
codegen-units = 1 # Reduce the number of codegen units to increase optimizations.
9+
panic = "abort" # Abort on panic
10+
strip = true # Strip symbols from binary

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
custom: [
2+
'https://rust-nostr.org/donate',
3+
]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
<!-- A clear and concise description of what the bug is. -->
11+
12+
**To Reproduce**
13+
<!-- Steps or code to reproduce the behavior. -->
14+
15+
**Expected behavior**
16+
<!-- A clear and concise description of what you expected to happen. -->
17+
18+
**Build environment**
19+
* Version/tag/commit: <!-- e.g. v0.13.0, 3a07614 -->
20+
* OS+version: <!-- e.g. ubuntu 20.04.01, macOS 12.0.1, windows -->
21+
22+
**Additional context**
23+
<!-- Add any other context about the problem here. -->
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Enhancement request
3+
about: Request a new feature or change to an existing feature
4+
title: ''
5+
labels: 'enhancement'
6+
assignees: ''
7+
---
8+
9+
**Describe the enhancement**
10+
<!-- A clear and concise description of what you would like added or changed. -->
11+
12+
**Use case**
13+
<!-- Tell us how you or others will use this new feature or change to an existing feature. -->
14+
15+
**Additional context**
16+
<!-- Add any other context about the enhancement here. -->

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "cargo"
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "monthly"

.github/pull_request_template.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### Description
2+
3+
<!-- Describe the purpose of this PR, what's being adding and/or fixed -->
4+
5+
### Notes to the reviewers
6+
7+
<!-- In this section you can include notes directed to the reviewers, like explaining why some parts
8+
of the PR were done in a specific way -->
9+
10+
### Checklist
11+
12+
* [ ] I followed the [contribution guidelines](https://github.com/rust-nostr/nostr/blob/master/CONTRIBUTING.md)
13+
* [ ] I ran `just precommit` or `bash contrib/scripts/precommit.sh` before committing
14+
* [ ] I updated the [CHANGELOG](https://github.com/rust-nostr/nostr/blob/master/CHANGELOG.md) (if applicable)

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
fmt:
14+
name: Format
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- name: Check
20+
run: bash contrib/scripts/check-fmt.sh check
21+
22+
check-crates:
23+
name: Check crate
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
- name: Check
29+
run: bash contrib/scripts/check-crate.sh

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Rust
2+
target/
3+
4+
# JS
5+
node_modules/
6+
package-lock.json
7+
pkg/
8+
wasm-pack.log
9+
*.tgz
10+
11+
# IDEs
12+
.idea/
13+
.vscode/
14+
15+
# ?
16+
bin/
17+
**/*.rs.bk

.npmignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Rust
2+
.cargo/
3+
target/
4+
src/
5+
Cargo.toml
6+
Cargo.lock
7+
8+
# JS package and scripts
9+
scripts/
10+
pkg/README.md
11+
pkg/package.json
12+
pkg/*.wasm
13+
14+
# Other stuff
15+
.github/
16+
benches/
17+
contrib/
18+
examples/
19+
.gitignore
20+
*.tgz
21+
22+
# IDEs
23+
.idea/
24+
.vscode/

BUILD.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Build
2+
3+
## Prerequisites
4+
5+
* Rust: https://www.rust-lang.org/tools/install
6+
* Just: https://just.systems/man/en/ (install with `cargo install just`)
7+
8+
## Build
9+
10+
```bash
11+
just pack
12+
```
13+
14+
You'll find a `tgz` archive in this folder.

0 commit comments

Comments
 (0)