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
18 changes: 9 additions & 9 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
Expand Up @@ -22,7 +22,7 @@ resolver = "2"
ra_ap_proc_macro_api = { path = "crates/third_party/ra_ap_proc_macro_api" }

[workspace.package]
version = "0.3.0-dev.49"
version = "0.3.0-dev.50"
description = "The Incan programming language compiler"
edition = "2024"
rust-version = "1.92"
Expand Down
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,15 @@ test-rust-inspect:
@cargo test --lib --features rust_inspect frontend::typechecker::tests::test_rust_inspect_unavailable_stays_permissive_for_method_calls
@cargo test --lib --features rust_inspect frontend::typechecker::tests::test_rusttype_return_coercion_recorded_for_generic_newtype_method_call

.PHONY: generated-rust-audit-gate ## test - Run deterministic generated Rust audit helper checks
generated-rust-audit-gate:
@echo "\033[1mRunning generated Rust audit helper checks...\033[0m"
@cargo test --test generated_rust_audit_tests
@python3 scripts/generated_rust_audit.py --format json --fail-on-missing \
--artifact program-main=tests/fixtures/generated_rust_audit/main.rs \
--artifact stdlib-copy=tests/fixtures/generated_rust_audit/nested >/dev/null
@echo "\033[32m✓ Generated Rust audit helper checks passed\033[0m"

.PHONY: examples ## test - Smoke test examples (check all, run entrypoints with timeout)
examples: release
@echo "\033[1mRunning examples...\033[0m"
Expand Down
7 changes: 7 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ Utility scripts for development and CI.

## Contents

- `generated_rust_audit.py`: Emits an objective generated Rust strict-surface report for selected generated `.rs` files or artifact directories.
- `run_examples.sh`: Smoke-tests all examples. It pre-builds nested example library projects, typechecks every `.incn` file under `examples/`, and then runs files that define `def main(...)` with a configurable timeout. Invoked by `make examples`.

## Generated Rust audit helper

Run `make generated-rust-audit-gate` after changing the audit helper. The target is deterministic: it uses committed fixtures under `tests/fixtures/generated_rust_audit/` and does not require preexisting `target/incan/` generated artifacts.

For real generated artifacts, run `scripts/generated_rust_audit.py` with explicit `--artifact SURFACE_CLASS=PATH` entries. Repository-local paths are rendered relative to the repository root in reports.

## Configuration

`run_examples.sh` respects these environment variables:
Expand Down
Loading
Loading