xian-compiler-core
This crate is the Rust/WASM compiler core described in
../../docs/RUST_COMPILER_CORE.md.
The crate owns the artifact model, hashing rules, diagnostics, source
units, parser adapter, Xian-owned syntax tree, semantic linting, source
normalization, structural xian_ir_v1 lowering, bounded compile admission, and
compiler fixture loader. The checked-in accepted and rejected fixtures are the
shared parity oracle for Rust, Python, WASM/JavaScript, linter, and node
admission surfaces.
Current Surface
SourceUnit: validated source/module/profile input wrapperContractArtifact: typedxian_contract_artifact_v1deployment artifactbuild_contract_artifact(...): construct artifact metadata from canonical source and canonical IR bytesvalidate_contract_artifact(...): verify artifact format, profile, hashes, JSON IR, and embedded IR identity fieldsCompilerDiagnostic: stable structured diagnostic payloadCompilerLimits: consensus defaults for source bytes, syntax nodes/depth, total tokens, and logical-line tokensparse_source(...): RustPython-backed parser adapter for the current Python-like contract syntax, returning an opaque parsed moduleparse_diagnostics(...): deterministic parser diagnostic adapter with source rangesparse_to_syntax(...): parse source and convert it into a compact Xian-owned syntax treebuild_syntax_tree(...): convert an existing parsed module into Xian syntaxSyntaxModule,SyntaxStatement,SyntaxExpression: Rust-owned syntax data model used by later lint/normalize/lower stageslint_syntax(...): semantic lint rules overSyntaxModulenormalize_syntax(...): deterministic formatter over the Xian syntax treenormalize_source(...): parse, optionally lint, and return canonical sourcelower_syntax_to_ir(...): lower a validated syntax tree into structuralxian_ir_v1lower_source_to_ir(...): normalize, parse, optionally lint, and lower source into structuralxian_ir_v1lower_source_to_ir_json(...): return canonical JSON for the lowered IRcompile_contract_artifact(...): normalize, lower, and build a hash-checkedxian_contract_artifact_v1describe_vm_host_surface(): expose thexian_vm_v1_host_v1host catalogdiagnose_contract(...): authoritative high-level compiler entrypoint; validates the complete source-to-IR path and returns stable diagnosticscompiler_version(): machine-readable version and schema metadataCompilerFixture: typed representation ofxian.compiler_fixture.v1parse_compiler_fixture_json(...): load a fixture JSON documentCompilerFixture::validate_basic(): deterministic structural checks for accepted and rejected fixture records
Fixtures are refreshed through the authoritative Python binding with:
uv run python scripts/generate_compiler_fixtures.py \
packages/xian-compiler-core/tests/sources
Run the Rust fixture checks with:
cargo test --manifest-path packages/xian-compiler-core/Cargo.toml
Check the optional binding layers with:
cargo check --manifest-path packages/xian-compiler-core/Cargo.toml \
--features python-extension
cargo check --manifest-path packages/xian-compiler-core/Cargo.toml \
--features wasm
Build the Python package locally with:
uv run python -c "import xian_compiler_core"
Build the WASM package from packages/xian-compiler-core/npm with:
npm run build
The WASM build requires wasm-pack and a Rust toolchain with the
wasm32-unknown-unknown standard library installed. The generated npm package
is consumed by browser apps such as xian-ide-web and by JS callers that want
to compile source locally.
Metadata
Release files for xian-tech-compiler-core 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xian_tech_compiler_core-0.2.0.tar.gz | 77.4 kB | With provenance | Details for xian_tech_compiler_core-0.2.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| xian_tech_compiler_core-0.2.0-cp314-abi3-win_amd64.whl | CPython 3.14 | abi3 | Windows x86-64 | Details for xian_tech_compiler_core-0.2.0-cp314-abi3-win_amd64.whl |
| xian_tech_compiler_core-0.2.0-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.14 | abi3 | Linux glibc 2.17+ x86-64 | Details for xian_tech_compiler_core-0.2.0-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| xian_tech_compiler_core-0.2.0-cp314-abi3-macosx_11_0_arm64.whl | CPython 3.14 | abi3 | macOS 11.0+ ARM64 | Details for xian_tech_compiler_core-0.2.0-cp314-abi3-macosx_11_0_arm64.whl |
| xian_tech_compiler_core-0.2.0-cp314-abi3-macosx_10_12_x86_64.whl | CPython 3.14 | abi3 | macOS 10.12+ x86-64 | Details for xian_tech_compiler_core-0.2.0-cp314-abi3-macosx_10_12_x86_64.whl |
Total release size: 6.4 MB
Release files / xian_tech_compiler_core-0.2.0.tar.gz
| Download URL | xian_tech_compiler_core-0.2.0.tar.gz |
|---|---|
| Size | 77.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d4e385d09327b7c3cf8616b4543f1d7db4e7e2bbbd0b89c9ac3ec9fcb4fae09
|
|
BLAKE2b-256 checksum How to use checksums |
5f67b81fec8b73ff1a06bb5eacf7b1ccf06572a00d48f124bc9a5a320fc970df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.
Transparency logRelease files / xian_tech_compiler_core-0.2.0-cp314-abi3-win_amd64.whl
| Download URL | xian_tech_compiler_core-0.2.0-cp314-abi3-win_amd64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.14 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1cd71a53e31bdb026b3d977cf391be5cba269115f21655be4edd3e68626bf133
|
|
BLAKE2b-256 checksum How to use checksums |
986afda39f8b432a2c75947e8afb3449501ada278c55fd1a4161c531e4260da2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.
Transparency logRelease files / xian_tech_compiler_core-0.2.0-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | xian_tech_compiler_core-0.2.0-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
83688195267d9eb128aede6991d94f05cb8d61e1ceeb859420adc201c779d34a
|
|
BLAKE2b-256 checksum How to use checksums |
5973451104961819a1d40b651734231ef9c610996e0f5daa2a51858aaf930107
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.
Transparency logRelease files / xian_tech_compiler_core-0.2.0-cp314-abi3-macosx_11_0_arm64.whl
| Download URL | xian_tech_compiler_core-0.2.0-cp314-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.14 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e6bbab2d9f6bed207dd5d81bfc5a3ebbbd114167c60cd6ba3c5b60670090a319
|
|
BLAKE2b-256 checksum How to use checksums |
70fd885a9e00e7c32357fbe2e39669369790aae43561c74b070b15d2297b8eab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.
Transparency logRelease files / xian_tech_compiler_core-0.2.0-cp314-abi3-macosx_10_12_x86_64.whl
| Download URL | xian_tech_compiler_core-0.2.0-cp314-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.14 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
045aea4b6aee9e1411ce4b10913a52b6a6e27b8df50e7fe39da9d544f837cfdf
|
|
BLAKE2b-256 checksum How to use checksums |
b408c63e2f4a27de90372e5f40b8d582b171c2afaff1f5f4828225d37a2c7f82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.
Transparency logSecurity for xian-tech-compiler-core 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 5 files in this release have been uploaded with provenance metadata.
Attestation for xian_tech_compiler_core-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.