-
Notifications
You must be signed in to change notification settings - Fork 39
Merge tauri-plugin-web-transport into this repo #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 3 commits
b8928c1
5764706
23fa7a0
3f2e2f2
5ba901d
b270fa8
8b88a54
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| use flake |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,9 @@ | ||
| target | ||
| Cargo.lock | ||
|
|
||
| # Node.js | ||
| node_modules/ | ||
| dist/ | ||
|
|
||
| # Direnv | ||
| .direnv/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| // This has to be in the root otherwise the VSCode plugin will not work out of the box. | ||
| { | ||
| "$schema": "https://biomejs.dev/schemas/2.2.3/schema.json", | ||
| "vcs": { | ||
| "enabled": true, | ||
| "clientKind": "git", | ||
| "useIgnoreFile": true | ||
| }, | ||
| "formatter": { | ||
| // We repeat the editorconfig settings here because biome has spotty mono-repo support. | ||
| // "useEditorconfig": true, | ||
| "lineWidth": 120, | ||
| "indentStyle": "tab", | ||
| "indentWidth": 4, | ||
| "lineEnding": "lf" | ||
| }, | ||
| "files": { | ||
| "includes": ["**", "!**/permissions/schemas/*.json"] | ||
| }, | ||
| "linter": { | ||
| "rules": { | ||
| "style": { | ||
| "useNodejsImportProtocol": "off" | ||
| }, | ||
| "suspicious": { | ||
| // Some runtimes need ts-ignore | ||
| "noTsIgnore": "off" | ||
| } | ||
| } | ||
| }, | ||
| "javascript": { | ||
| "formatter": { | ||
| "quoteStyle": "double" | ||
| } | ||
| } | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| { | ||
| description = "Web Transport development environment"; | ||
|
|
||
| inputs = { | ||
| nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
| flake-utils.url = "github:numtide/flake-utils"; | ||
| }; | ||
|
|
||
| outputs = | ||
| { | ||
| self, | ||
| nixpkgs, | ||
| flake-utils, | ||
| }: | ||
| flake-utils.lib.eachDefaultSystem ( | ||
| system: | ||
| let | ||
| pkgs = import nixpkgs { inherit system; }; | ||
|
|
||
| rustTools = [ | ||
| pkgs.rustc | ||
| pkgs.cargo | ||
| pkgs.rustfmt | ||
| pkgs.clippy | ||
| pkgs.cargo-shear | ||
| pkgs.cargo-sort | ||
| pkgs.cargo-edit | ||
| ]; | ||
|
|
||
| jsTools = [ | ||
| pkgs.nodejs_24 | ||
| pkgs.pnpm_10 | ||
| pkgs.biome | ||
| ]; | ||
|
|
||
| tools = [ | ||
| pkgs.just | ||
| ]; | ||
| in | ||
| { | ||
| devShells.default = pkgs.mkShell { | ||
| packages = rustTools ++ jsTools ++ tools; | ||
| }; | ||
| } | ||
| ); | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -11,17 +11,11 @@ default: | |||||||||||||||||
|
|
||||||||||||||||||
| # Install any required dependencies. | ||||||||||||||||||
| setup: | ||||||||||||||||||
| # Install cargo-binstall for faster tool installation. | ||||||||||||||||||
| cargo install cargo-binstall | ||||||||||||||||||
| just setup-tools | ||||||||||||||||||
|
|
||||||||||||||||||
| # A separate entrypoint for CI. | ||||||||||||||||||
| setup-tools: | ||||||||||||||||||
| cargo binstall -y cargo-shear cargo-sort cargo-upgrades cargo-edit | ||||||||||||||||||
| cargo install -y cargo-shear cargo-sort cargo-upgrades cargo-edit | ||||||||||||||||||
|
||||||||||||||||||
| cargo install -y cargo-shear cargo-sort cargo-upgrades cargo-edit | |
| # Install only missing tools; keep reproducible with --locked | |
| set -eu | |
| for crate in cargo-shear cargo-sort cargo-upgrades cargo-edit; do | |
| if ! command -v "$crate" >/dev/null 2>&1; then | |
| cargo install --locked "$crate" | |
| fi | |
| done |
🤖 Prompt for AI Agents
In justfile around line 14, the command uses an unsupported flag "-y" with
"cargo install"; remove the "-y" so it reads "cargo install cargo-shear
cargo-sort cargo-upgrades cargo-edit". Optionally wrap the installs behind a
guard (check if each binary is already installed or gate with an environment
variable) to avoid reinstalling during CI or local runs.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "name": "web-transport-workspace", | ||
| "private": true, | ||
| "type": "module", | ||
| "engines": { | ||
| "node": ">=18" | ||
| }, | ||
| "scripts": { | ||
| "build": "pnpm -r build", | ||
| "dev": "pnpm -r dev", | ||
| "check": "pnpm -r check", | ||
| "clean": "pnpm -r clean && rimraf dist node_modules/.cache", | ||
| "install-all": "pnpm install --frozen-lockfile" | ||
| }, | ||
| "devDependencies": { | ||
| "typescript": "^5.9.2", | ||
| "rimraf": "^6.0.1", | ||
| "@types/node": "^24.3.0", | ||
| "tsx": "^4.20.5", | ||
| "@biomejs/biome": "^2.2.2" | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Harden workflow + cancel redundant runs
Add least-privilege permissions and PR-run concurrency; also bump checkout to v4.
Apply:
Optionally cap job runtime:
jobs: build: runs-on: ubuntu-latest + timeout-minutes: 20📝 Committable suggestion
🤖 Prompt for AI Agents