Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Update project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Apr 6, 2024
1 parent e63b43f commit 69deb0e
Show file tree
Hide file tree
Showing 96 changed files with 3,008 additions and 1,261 deletions.
1 change: 0 additions & 1 deletion .config/flakebox/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions .config/flakebox/bin/flakebox-in-each-cargo-workspace

This file was deleted.

1 change: 0 additions & 1 deletion .config/flakebox/id

This file was deleted.

32 changes: 0 additions & 32 deletions .config/flakebox/shellHook.sh

This file was deleted.

1 change: 0 additions & 1 deletion .envrc

This file was deleted.

26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'bug'
assignees: ''
---

**Describe the bug**
<!-- A clear and concise description of what the bug is. -->

**To Reproduce**
<!-- Steps or code to reproduce the behavior. -->

**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->

**Build environment**
* Library: <!-- cdk, cashu-cli, ... -->
* Language: <!-- Rust, Python, JavaScript, Kotlin, Swift, ... -->
* Language version: <!-- e.g. v1.65.0, not applicable -->
* Tag/commit: <!-- e.g. v0.13.0, 3a07614 -->
* OS+version: <!-- e.g. ubuntu 20.04.01, macOS 12.0.1, windows -->

**Additional context**
<!-- Add any other context about the problem here. -->
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Enhancement request
about: Request a new feature or change to an existing feature
title: ''
labels: 'enhancement'
assignees: ''
---

**Describe the enhancement**
<!-- A clear and concise description of what you would like added or changed. -->

**Use case**
<!-- Tell us how you or others will use this new feature or change to an existing feature. -->

**Additional context**
<!-- Add any other context about the enhancement here. -->
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "cargo"
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
32 changes: 32 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!-- You can erase any parts of this template not applicable to your Pull Request. -->

### Description

<!-- Describe the purpose of this PR, what's being adding and/or fixed -->

### Notes to the reviewers

<!-- In this section you can include notes directed to the reviewers, like explaining why some parts
of the PR were done in a specific way -->

### Changelog notice

<!-- Add the changelog -->

### Checklists

#### All Submissions:

* [ ] I followed the [contribution guidelines](https://github.com/rust-nostr/nostr/blob/master/CONTRIBUTING.md)
* [ ] I ran `just precommit` or `just check` before committing

#### New Features:

* [ ] I've added tests for the new feature
* [ ] I've added docs for the new feature

#### Bugfixes:

* [ ] This pull request breaks the existing API
* [ ] I've added tests to reproduce the issue which are now passing
* [ ] I'm linking the issue being fixed by this PR
106 changes: 42 additions & 64 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ main ]
branches: [ master ]
pull_request:
branches: [ main ]
branches: [ master ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -14,75 +14,53 @@ jobs:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cargo fmt --all -- --config format_code_in_doc_comments=true --check
- name: Checkout
uses: actions/checkout@v3
- name: Install just
run: cargo install just
- name: Check
run: just check-fmt

build:
name: Build
check-crates:
name: Check crates
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- version: stable
build-args:
[
-p cashu,
-p cashu --no-default-features,
-p cashu --no-default-features --features wallet,
-p cashu --no-default-features --features mint,
-p cashu-sdk,
-p cashu-sdk --no-default-features,
]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Set default toolchain
run: rustup default ${{ matrix.rust.version }}
- name: Set profile
run: rustup set profile minimal && rustup component add clippy
- name: Build
run: cargo build ${{ matrix.build-args }}
- name: Clippy
run: cargo clippy ${{ matrix.build-args }} -- -D warnings
- name: Install just
run: cargo install just
- name: Check
run: just check-crates

build-wasm:
name: Build WASM
check-crates-msrv:
name: Check crates (MSRV)
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- version: stable
build-args:
[
-p cashu,
-p cashu-sdk,
]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-wasm32-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Set default toolchain
run: rustup default ${{ matrix.rust.version }}
- name: Add WASM
run: rustup target add wasm32-unknown-unknown
- name: Set profile
run: rustup set profile minimal && rustup component add clippy
- name: Build
run: cargo build ${{ matrix.build-args }} --target wasm32-unknown-unknown
- name: Clippy
run: cargo clippy ${{ matrix.build-args }} --target wasm32-unknown-unknown -- -D warnings
- name: Install just
run: cargo install just
- name: Check
run: just check-crates-msrv

check-bindings:
name: Check bindings
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install just
run: cargo install just
- name: Check
run: just check-bindings

check-docs:
name: Check docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install just
run: cargo install just
- name: Check
run: just check-docs
82 changes: 0 additions & 82 deletions .github/workflows/flakebox-ci.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/flakebox-flakehub-publish.yml

This file was deleted.

Loading

0 comments on commit 69deb0e

Please sign in to comment.