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
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/.env*
**/.next
**/node_modules
**/npm-debug.log
.git
6 changes: 0 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ max_line_length=100
tab_width=4
trim_trailing_whitespace=true

[*.py]
charset=utf-8
indent_size=4
indent_style=space

[*.{sh,yml,yaml}]
indent_size=2
indent_style=space
tab_width=8
41 changes: 25 additions & 16 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,40 +22,49 @@ jobs:
name: Task cargo ${{ matrix.action }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
action: [clippy, fmt, nextest]
action: [clippy, fmt, nextest, vstyle]
steps:
- name: Fetch latest code
uses: actions/checkout@v4
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Setup build environment
if: matrix.action != 'fmt'
run: rustup show
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
if: matrix.action != 'fmt'
with:
prefix-key: ${{ env.CACHE_VERSION }}
key: ${{ matrix.action }}
- name: Install cargo-make
uses: taiki-e/install-action@c93ccc03e00cd0e08e494f5fd058a6c55a6a1907
with:
tool: cargo-make
- name: Install taplo
if: matrix.action == 'fmt'
uses: taiki-e/install-action@c93ccc03e00cd0e08e494f5fd058a6c55a6a1907
with:
tool: taplo
- name: Cargo clippy
if: matrix.action == 'clippy'
uses: giraffate/clippy-action@v1
with:
clippy_flags: --workspace --all-features --all-targets --locked
run: cargo make lint-rust
- name: Cargo fmt
if: matrix.action == 'fmt'
run: |
rustup toolchain install nightly
rustup component add rustfmt --toolchain nightly
cargo +nightly fmt --all -- --check
cargo make fmt-check
- name: Install cargo-nextest
if: matrix.action == 'nextest'
uses: taiki-e/install-action@nextest
uses: taiki-e/install-action@c93ccc03e00cd0e08e494f5fd058a6c55a6a1907
with:
tool: nextest
- name: Cargo nextest
if: matrix.action == 'nextest'
run: cargo nextest run --cargo-profile ci-dev --workspace --all-features --all-targets --locked
- name: Fast fail
uses: vishnudxb/cancel-workflow@v1.2
if: failure()
with:
repo: hack-ink/unescaper
workflow_id: ${{ github.run_id }}
access_token: ${{ github.token }}
run: cargo make test-rust
- name: Install cargo-vstyle
if: matrix.action == 'vstyle'
run: cargo install --git https://github.com/hack-ink/vibe-style --rev f509613696c60fbc5e444072469024888d91d88b --locked
- name: Cargo vstyle
if: matrix.action == 'vstyle'
run: cargo make lint-vstyle-rust
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Publish
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b
with:
discussion_category_name: Announcements
generate_release_notes: true
Expand All @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@v4
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Login
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish
Expand Down
79 changes: 69 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,75 @@
# Integrated development environment.
# AI
.agent
.codex
!apps/decodex-app/.codex/
!apps/decodex-app/.codex/environments/
!apps/decodex-app/.codex/environments/environment.toml

# Decodex Local Runtime
.decodex
.decodex-run-activity
.decodex-run-control

# Editor
.vscode
.zed

# Package manager.
## Cargo.
target
## NPM.
# General Ignores
*.bak
*.log
.env*
.turbo
model
!apps/decodex/src/autonomy_signal/model/
!apps/decodex/src/autonomy_signal/model/*.rs
tmp

# Kubernetes
.kube

# Language Specifics

## JavaScript/TypeScript
*.tsbuildinfo
.next
.pnp
.pnp.*
.pnpm-debug.log*
.vercel
.vite
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions
build
coverage
dist
next-env.d.ts
node_modules
npm-debug.log*
out/
site/.astro/
site/dist/
yarn-debug.log*
yarn-error.log*

## Python
.pytest_cache
.ruff_cache
.venv
__pycache__

## Rust
target

# System.
# Swift
.build
xcuserdata

# System
.DS_Store

# Test data.
*.bak
.env
tmp
# Work Dirs
.workspaces
.worktrees
21 changes: 21 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.next
.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions
apps/ui/**/*.gif
apps/ui/**/*.jpg
apps/ui/**/*.png
apps/ui/**/*.svg
apps/ui/**/*.ttf
apps/ui/README.md
apps/ui/public
apps/ui/src/ui/Svg
build
coverage
dist
node_modules
out
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"tabWidth": 2
}
8 changes: 4 additions & 4 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Basic.
# Basic
edition = "2024"
hard_tabs = true
max_width = 100
tab_spaces = 4

# Import.
# Imports
imports_granularity = "Crate"
reorder_imports = true

# Comments.
# Comments
comment_width = 100
wrap_comments = true

# Misc.
# Misc
format_code_in_doc_comments = true
inline_attribute_width = 100
match_arm_blocks = false
Expand Down
73 changes: 73 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
exclude = [
"**/Makefile.toml",
"*.bak",
"*.log",
"*.tsbuildinfo",
".build",
".build/**",
".codex",
".codex/**",
".env*",
".kube",
".kube/**",
".next",
".next/**",
".pnp.*",
".pnpm-debug.log*",
".pytest_cache",
".pytest_cache/**",
".ruff_cache",
".ruff_cache/**",
".turbo",
".turbo/**",
".venv",
".venv/**",
".vercel",
".vercel/**",
".vite",
".vite/**",
".vscode",
".vscode/**",
".workspaces",
".workspaces/**",
".worktrees",
".worktrees/**",
".zed",
".zed/**",
"Makefile.toml",
"__pycache__",
"__pycache__/**",
"build",
"build/**",
"coverage",
"coverage/**",
"dist",
"dist/**",
"model",
"model/**",
"node_modules",
"node_modules/**",
"npm-debug.log*",
"out",
"out/**",
"target",
"target/**",
"tmp",
"tmp/**",
"xcuserdata",
"xcuserdata/**",
"yarn-debug.log*",
"yarn-error.log*",
]

[formatting]
align_comments = true
align_entries = true
allowed_blank_lines = 1
array_auto_collapse = false
array_auto_expand = false
array_trailing_comma = true
compact_arrays = true
indent_string = "\t"
reorder_arrays = true
reorder_keys = true
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Hack Ink <hi@hack.ink>", "Xavier Lau <x@acg.box>"]
description = "Unescape strings with escape sequences written out as literal characters."
edition = "2021"
edition = "2024"
homepage = "https://hack.ink/unescaper"
keywords = [
"escape",
Expand Down
Loading