Skip to content

Commit 3d28085

Browse files
Haofeiclaude
andcommitted
refactor(repo): restructure into crates/ workspace and rename folders for clarity
Consolidate the confusing top-level layout: - core/ -> stdlib/ (RSScript stdlib .rssi interfaces) - rss/ -> packages/ (first-party RSScript packages) - benchmark/ + benchmarks/ -> benchmarks/{micro,packages}/ - demos/ -> examples/demos/ (s3-iam-reir hero demo) - docs/ + specs/ -> docs/ (single documentation root) - main crate + lsp/runtime/reir/native-abi/vm-jit -> crates/* (root Cargo.toml is now a virtual workspace manifest) Rewire every path reference: build.rs workspace-root walker, interfaces.rs include_str! stdlib paths, rsspkg.lock source paths, Cargo workspace members, native crate relative path-deps (depth-adjusted), generated test fixtures, runtime/native-abi locators, and test helpers (workspace_root / fixture_root / runtime_path). Fix the capability-taxonomy gate that had silently become a no-op under the nested-crate layout. Full suite green: 1200 passed, 0 failed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 4a779b6 commit 3d28085

812 files changed

Lines changed: 865 additions & 746 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.

.github/actions/rsscript-review/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ runs:
6969
else
7070
# Ambient binaries are not provenance-pinned. For a protected gate, pin
7171
# this action to a release SHA so the toolchain is built from that ref.
72-
echo "::warning::Using rss/reir already on PATH. These are not provenance-pinned; pin this action to a release SHA for a trusted supply-chain gate ($(command -v rss), $(command -v reir))."
72+
echo "::warning::Using packages/reir already on PATH. These are not provenance-pinned; pin this action to a release SHA for a trusted supply-chain gate ($(command -v rss), $(command -v reir))."
7373
fi
7474
7575
- name: Run RSScript and REIR review

.github/workflows/rsscript-review-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: ./.github/actions/rsscript-review
2222
with:
2323
head: examples/packages/code-agent
24-
grants: demos/s3-iam-reir/expected/prod-grants.reir.json
24+
grants: examples/demos/s3-iam-reir/expected/prod-grants.reir.json
2525
target: prod
2626
post-comment: false
2727
fail-on-missing: false

Cargo.toml

Lines changed: 13 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,20 @@
1-
[package]
2-
name = "rsscript"
3-
version = "0.1.0"
4-
edition = "2024"
5-
description = "Reviewable System Script v0.6 review-first front-end checker and Rust lowering prototype"
6-
license = "MIT OR Apache-2.0"
7-
81
[workspace]
2+
resolver = "3"
93
members = [
10-
"lsp",
11-
"runtime",
12-
"reir",
13-
"native-abi",
14-
"vm-jit",
15-
"rss/core/cli/native/rust",
16-
"rss/core/crypto/native/rust",
17-
"rss/core/http-server/native/rust",
18-
"rss/rayon/native/rust",
19-
"rss/adapters/sqlite/native/rust",
20-
"rss/adapters/sqlx-ffi/native/rust",
4+
"crates/rsscript",
5+
"crates/lsp",
6+
"crates/runtime",
7+
"crates/reir",
8+
"crates/native-abi",
9+
"crates/vm-jit",
10+
"packages/core/cli/native/rust",
11+
"packages/core/crypto/native/rust",
12+
"packages/core/http-server/native/rust",
13+
"packages/rayon/native/rust",
14+
"packages/adapters/sqlite/native/rust",
15+
"packages/adapters/sqlx-ffi/native/rust",
2116
]
2217

23-
[[bin]]
24-
name = "rss"
25-
path = "src/main.rs"
26-
27-
[dependencies]
28-
reir = { path = "reir" }
29-
rss-native-abi = { path = "native-abi", features = ["host"] }
30-
serde = { version = "1", features = ["derive"] }
31-
serde_json = { version = "1", features = ["preserve_order"] }
32-
sha2 = "0.10"
33-
regex = "1"
34-
toml = "0.8"
35-
serde_yaml_ng = "0.10"
36-
base64 = "0.22"
37-
chrono = { version = "0.4", default-features = false, features = ["alloc"] }
38-
hex = "0.4"
39-
hmac = "0.12"
40-
percent-encoding = "2"
41-
rand = "0.8"
42-
uuid = { version = "1", features = ["v4"] }
43-
vm-jit = { path = "vm-jit", optional = true }
44-
45-
[features]
46-
# Native (Cranelift) baseline JIT for the integer/control core. Off by default so
47-
# normal builds/tests don't pull in the codegen dependency; enable for the
48-
# native differential backend, `rss bench --mode jit-native`, and force-JIT CI.
49-
native-jit = ["dep:vm-jit"]
50-
51-
[build-dependencies]
52-
serde = { version = "1", features = ["derive"] }
53-
serde_json = "1"
54-
toml = "0.8"
55-
5618
# Release tuning for the `rss` tool / VM. Thin LTO + a single codegen unit let the
5719
# optimizer inline across the interpreter's hot dispatch/value helpers, which are
5820
# spread across modules. Small but real on the interpreter (~3% on numeric loops);
@@ -61,14 +23,3 @@ toml = "0.8"
6123
[profile.release]
6224
lto = "thin"
6325
codegen-units = 1
64-
65-
[dev-dependencies]
66-
sha1 = "0.10"
67-
libtest-mimic = "0.8"
68-
proptest = "1"
69-
70-
# The differential corpus runner uses a custom (libtest-mimic) harness so each
71-
# fixture is an individually named, filterable test case.
72-
[[test]]
73-
name = "corpus"
74-
harness = false

README.md

Lines changed: 4 additions & 4 deletions
Lines changed: 2 additions & 2 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)