Skip to content
Open
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
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ jobs:
- name: Tests
working-directory: rustscript
run: cargo test --workspace
- name: External host-extension fixture
working-directory: rustscript
run: |
# The standalone fixture consumes only the public host-extension SDK.
# It is its own (detached) workspace, so both commands run against
# the job-level CARGO_TARGET_DIR (gitignored) — never a nested
# target/ inside tests/fixtures/external-host-extension. --locked
# pins the committed fixture Cargo.lock so drift in the pd-vm
# dependency edge set fails CI instead of silently re-resolving.
cargo check --locked --manifest-path tests/fixtures/external-host-extension/Cargo.toml
cargo test --locked --manifest-path tests/fixtures/external-host-extension/Cargo.toml

pd-vm-cli:
name: pd-vm CLI (${{ matrix.os }})
Expand Down
111 changes: 111 additions & 0 deletions Cargo.lock

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

57 changes: 55 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"pd-vm-nostd",
"pd-vm-wasm",
"crates/rustscript",
"crates/pd-host-schema",
]
resolver = "2"

Expand Down Expand Up @@ -86,14 +87,14 @@ edge_abi = { package = "pd-edge-abi", version = "0.1.1", default-features = fals
futures-channel = "0.3"
paste = "1"
regex = "1"
serde = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
rt-format = "0.3.1"
self_cell = "1"
rustyline = { version = "14", optional = true }

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.59", features = ["Win32_System_Diagnostics_Debug", "Win32_System_Memory", "Win32_System_ProcessStatus", "Win32_System_Threading"] }
windows-sys = { version = "0.59", features = ["Win32_System_Diagnostics_Debug", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Memory", "Win32_System_ProcessStatus", "Win32_System_Threading"] }

[target.'cfg(unix)'.dependencies]
libc = "0.2"
Expand All @@ -103,12 +104,24 @@ futures-util = "0.3"
rcgen = "0.13"
syn = { version = "2", features = ["full"] }
tokio = { version = "1", features = ["macros", "rt", "time", "sync"] }
trybuild = "1"
pd-host-schema = { path = "./crates/pd-host-schema" }

[[test]]
name = "host_binding_generation_tests"
path = "tests/host_binding_generation_tests.rs"
required-features = ["cranelift-jit"]

[[test]]
name = "host_resource_table_tests"
path = "tests/host_resource_table_tests.rs"
required-features = ["runtime"]

[[test]]
name = "execution_scope_tests"
path = "tests/execution_scope_tests.rs"
required-features = ["runtime"]

[[test]]
name = "http_host_tests"
path = "tests/vm/http_host_tests.rs"
Expand All @@ -119,12 +132,52 @@ name = "http_sse_tests"
path = "tests/vm/http_sse_tests.rs"
required-features = ["runtime", "http-client"]

[[test]]
name = "io_http_coexistence_tests"
path = "tests/vm/io_http_coexistence_tests.rs"
required-features = ["runtime", "http-client"]



[[test]]
name = "sqlite_host_tests"
path = "tests/vm/sqlite_host_tests.rs"
required-features = ["sqlite"]

[[test]]
name = "standard_staging_tests"
path = "tests/vm/standard_staging_tests.rs"
required-features = ["runtime", "http-client", "sqlite"]

[[test]]
name = "core_host_boundary_tests"
path = "tests/core_host_boundary_tests.rs"
required-features = ["runtime"]

[[test]]
name = "host_context_arch_tests"
path = "tests/host_context_arch_tests.rs"
required-features = ["runtime"]

[[test]]
name = "host_context_execution_scope_tests"
path = "tests/host_context_execution_scope_tests.rs"
required-features = ["runtime"]

[[test]]
name = "host_resource_type_inference_tests"
path = "tests/host_resource_type_inference_tests.rs"

[[test]]
name = "vm_resource_ownership_consumer_tests"
path = "tests/vm_resource_ownership_consumer_tests.rs"
required-features = ["runtime"]

[[test]]
name = "vm_execution_scope_reset_tests"
path = "tests/vm_execution_scope_reset_tests.rs"
required-features = ["runtime"]

[build-dependencies]
syn = { version = "2", features = ["full"] }
pd-host-schema = { path = "./crates/pd-host-schema" }
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The complete language, runtime, and implementation guides live on the [RustScrip
- [Runtime controls and artifacts](https://rustscript.org/docs/reference/runtime-controls/)
- [Callable-driven HTTP client contract](docs/http-client.md)
- [Script call frames and callable values](docs/callable-runtime.md)
- [Scoped host resources and the host extension SDK](docs/scoped-host-resources.md)
- [Compiler frontend syntax and feature support](src/compiler/frontends/README.md)

## Crate usage
Expand Down
Loading
Loading