Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CARGO_TERM_COLOR=always
RUST_BACKTRACE=full
RUST_LOG="debug,rstmt=info,debug"
RUST_LOG="rsfi=info,debug,tower_http=info"
39 changes: 23 additions & 16 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,42 @@ title: 'Bug report: '
type: bug
---

**Describe the bug**
A clear and concise description of what the bug is.
## Description

<!-- Provide a clear and concise description of what the bug is. -->

### Reproduction

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.
#### *Expectations*

<!-- Please provide a short description of what you expected to happen. -->

#### *Actual*

**Screenshots**
If applicable, add screenshots to help explain your problem.
<!-- Provide a quick summary of what actually happened -->

### Host Details

<!-- List out any relevant details about the host / device -->

**Desktop (please complete the following information):**

- Device Type: [e.g. iPhone6]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
- Browser: [e.g. chrome, safari]
- Version: v0.0.x

## Discussion

**Smartphone (please complete the following information):**
<!-- Optionally, include a detailed write-up documenting the bug or issue complete with any related logs, error messages, or stack traces. -->

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
### Screenshots

**Additional context**
Add any other context about the problem here.
<!-- If applicable, add screenshots to help explain your problem. -->
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ title: 'Tracking Issue for '
type: feature
---

<!-- a concise summary that provides critical insight and context into the proposal and its purpose -->
<!-- A succinct summary providing insight into the proposal, its purpose, and any other information critical to the proposal -->

_**Goals**_
## Goals

The goals of this proposal:

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/cargo-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ env:
RUST_BACKTRACE: full

on:
release:
types: [published]
repository_dispatch:
types: [crates-io, cargo-publish]
workflow_dispatch:
Expand All @@ -34,11 +36,12 @@ jobs:
- rstmt-macros
- rstmt
steps:
- uses: actions/checkout@v6
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
repository: ${{ github.repository }}
ref: ${{ github.event.client_payload.ref || github.ref }}
repository: ${{ github.event.client_payload.repository || github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ jobs:
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Nix
uses: cachix/install-nix-action@v31
with:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,19 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.ref }}
ref: ${{ github.event.client_payload.ref || github.ref }}
repository: ${{ github.repository }}
token: ${{ github.token }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Dispatch & Publish to crates.io
uses: peter-evans/repository-dispatch@v4
with:
event-type: cargo-publish
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
token: ${{ github.token }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
continue-on-error: true
Expand Down
33 changes: 18 additions & 15 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ jobs:
matrix:
target: [x86_64-unknown-linux-gnu]
steps:
- uses: actions/checkout@v6
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
Expand All @@ -59,34 +62,38 @@ jobs:
features: [full, default]
target: [x86_64-unknown-linux-gnu]
steps:
- uses: actions/checkout@v6
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache-key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
target: ${{ matrix.target }}
toolchain: stable
override: true
- name: Test (default)
if: matrix.features == 'default'
run: cargo test -r --locked --workspace --target ${{ matrix.target}}
- name: Test (${{ matrix.features }})
if: matrix.features != 'default'
run: cargo test -r --locked --workspace --target ${{ matrix.target}} --features ${{ matrix.features }}
test_nightly:
if: github.event.inputs.toolchain == 'nightly' || false
continue-on-error: true
if: github.event_name == 'workflow_dispatch' && github.event.inputs.toolchain == 'nightly'
needs: build
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-C panic=abort -Z panic_abort_tests"
strategy:
fail-fast: false
matrix:
package: [rstmt-traits]
features:
- all
- no_std
- "alloc,nightly"
steps:
- uses: actions/checkout@v6
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
Expand All @@ -99,12 +106,8 @@ jobs:
- name: Test (no_std)
continue-on-error: true
if: matrix.features == 'no_std'
run: cargo test -r --locked --workspace --no-default-features --features nightly
env:
RUSTFLAGS: "-C panic=abort -Z panic_abort_tests"
run: cargo test -r --locked --workspace --no-default-features -p ${{ matrix.package }}
- name: Test (${{ matrix.features }})
continue-on-error: true
if: matrix.features != 'all' && matrix.features != 'no_std'
run: cargo test -r --locked --workspace --no-default-features --features ${{ matrix.features }}
env:
RUSTFLAGS: "-C panic=abort -Z panic_abort_tests"
run: cargo test -r --locked --workspace --no-default-features -p ${{ matrix.package }} -F ${{ matrix.features }}
Loading
Loading