Skip to content

Commit 5817deb

Browse files
authored
Rename crates to trusted-server-core and trusted-server-adapter-fastly (#517)
Rename crates/common → crates/trusted-server-core and crates/fastly → crates/trusted-server-adapter-fastly following the EdgeZero naming convention. Add EdgeZero workspace dependencies pinned to rev 170b74b. Update all references across docs, CI workflows, scripts, agent files, and configuration.
1 parent 4a5d6a4 commit 5817deb

123 files changed

Lines changed: 396 additions & 190 deletions

File tree

Some content is hidden

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

.claude/agents/build-validator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Validate that the project builds correctly across all targets.
1717
2. **WASM build** (production target)
1818

1919
```bash
20-
cargo build --bin trusted-server-fastly --release --target wasm32-wasip1
20+
cargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1
2121
```
2222

2323
3. **Clippy**
2424

2525
```bash
26-
cargo clippy --all-targets --all-features -- -D warnings
26+
cargo clippy --workspace --all-targets --all-features -- -D warnings
2727
```
2828

2929
4. **Format check**

.claude/agents/pr-creator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Before creating the PR, verify the branch is healthy:
2121

2222
```
2323
cargo fmt --all -- --check
24-
cargo clippy --all-targets --all-features -- -D warnings
24+
cargo clippy --workspace --all-targets --all-features -- -D warnings
2525
cargo test --workspace
2626
cd crates/js/lib && npx vitest run
2727
cd crates/js/lib && npm run format

.claude/agents/pr-reviewer.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ For each changed file, evaluate:
7070
#### WASM compatibility
7171

7272
- Target is `wasm32-wasip1` — no std::net, std::thread, or OS-specific APIs
73-
- No Tokio or runtime-specific deps in `crates/common`
74-
- Fastly-specific APIs only in `crates/fastly`
73+
- No Tokio or runtime-specific deps in `crates/trusted-server-core`
74+
- Fastly-specific APIs only in `crates/trusted-server-adapter-fastly`
7575

7676
#### Convention compliance (from CLAUDE.md)
7777

@@ -177,7 +177,7 @@ comment. Use the file's **current line number** (not diff position) with the
177177

178178
````json
179179
{
180-
"path": "crates/common/src/publisher.rs",
180+
"path": "crates/trusted-server-core/src/publisher.rs",
181181
"line": 166,
182182
"side": "RIGHT",
183183
"body": "🔧 **wrench** — Race condition: Description of the issue...\n\n**Fix**:\n```rust\n// suggested code\n```"
@@ -288,6 +288,6 @@ Output:
288288
- Do not include any byline, "Generated with" footer, `Co-Authored-By`
289289
trailer, or self-referential titles (e.g., "Staff Engineer Review") in
290290
review comments or the review body.
291-
- If the diff is very large (>50 files), prioritize `crates/common/` changes
291+
- If the diff is very large (>50 files), prioritize `crates/trusted-server-core/` changes
292292
and new files over mechanical changes (Cargo.lock, generated code).
293293
- Never submit a review without explicit user approval of the findings.

.claude/agents/repo-explorer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ implementation details.
1111

1212
This is a Rust workspace with three crates:
1313

14-
- `crates/common/` — core library (integrations, HTML processing, synthetic IDs, GDPR)
15-
- `crates/fastly/` — Fastly Compute entry point
14+
- `crates/trusted-server-core/` — core library (integrations, HTML processing, synthetic IDs, GDPR)
15+
- `crates/trusted-server-adapter-fastly/` — Fastly Compute entry point
1616
- `crates/js/` — TypeScript/JS build pipeline (per-integration IIFE bundles)
1717

1818
Target: `wasm32-wasip1` (Fastly Compute)

.claude/agents/verify-app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ cargo fmt --all -- --check
1919
### 2. Clippy
2020

2121
```bash
22-
cargo clippy --all-targets --all-features -- -D warnings
22+
cargo clippy --workspace --all-targets --all-features -- -D warnings
2323
```
2424

2525
### 3. Rust Tests
@@ -49,7 +49,7 @@ cd docs && npm run format
4949
### 7. WASM Build
5050

5151
```bash
52-
cargo build --bin trusted-server-fastly --release --target wasm32-wasip1
52+
cargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1
5353
```
5454

5555
## Output

.claude/commands/check-ci.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Run all CI checks locally, in order. Stop and report if any step fails.
22

33
1. `cargo fmt --all -- --check`
4-
2. `cargo clippy --all-targets --all-features -- -D warnings`
4+
2. `cargo clippy --workspace --all-targets --all-features -- -D warnings`
55
3. `cargo test --workspace`
66
4. `cd crates/js/lib && npx vitest run`
77
5. `cd crates/js/lib && npm run format`

.claude/commands/verify.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Full verification: build, test, and lint the entire project.
22

33
1. `cargo build --workspace`
4-
2. `cargo build --bin trusted-server-fastly --release --target wasm32-wasip1`
4+
2. `cargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1`
55
3. `cargo fmt --all -- --check`
6-
4. `cargo clippy --all-targets --all-features -- -D warnings`
6+
4. `cargo clippy --workspace --all-targets --all-features -- -D warnings`
77
5. `cargo test --workspace`
88
6. `cd crates/js/lib && npx vitest run`
99
7. `cd crates/js/lib && npm run format`

.github/actions/setup-integration-test-env/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ runs:
7373
TRUSTED_SERVER__PUBLISHER__PROXY_SECRET: integration-test-proxy-secret
7474
TRUSTED_SERVER__SYNTHETIC__SECRET_KEY: integration-test-secret-key
7575
TRUSTED_SERVER__PROXY__CERTIFICATE_CHECK: "false"
76-
run: cargo build --bin trusted-server-fastly --release --target wasm32-wasip1
76+
run: cargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1
7777

7878
- name: Build WordPress test container
7979
if: ${{ inputs.build-test-images == 'true' }}

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ Closes #
2424
<!-- How did you verify this works? Check all that apply -->
2525

2626
- [ ] `cargo test --workspace`
27-
- [ ] `cargo clippy --all-targets --all-features -- -D warnings`
27+
- [ ] `cargo clippy --workspace --all-targets --all-features -- -D warnings`
2828
- [ ] `cargo fmt --all -- --check`
2929
- [ ] JS tests: `cd crates/js/lib && npx vitest run`
3030
- [ ] JS format: `cd crates/js/lib && npm run format`
3131
- [ ] Docs format: `cd docs && npm run format`
32-
- [ ] WASM build: `cargo build --bin trusted-server-fastly --release --target wasm32-wasip1`
32+
- [ ] WASM build: `cargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1`
3333
- [ ] Manual testing via `fastly compute serve`
3434
- [ ] Other: <!-- describe -->
3535

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: actions-rust-lang/rustfmt@v1
3434

3535
- name: Run cargo clippy
36-
run: cargo clippy --all-targets --all-features -- -D warnings
36+
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
3737

3838
format-typescript:
3939
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)