Expand description
Shared Rust core for RustCall.jl.
This crate is the single place where Rust syntax is interpreted on behalf of RustCall.jl. It is consumed by two front ends:
rustcall_julia_macros_impl, the#[julia]proc-macro a user’s crate reaches throughrustcall_julia_macros(the crates@rust_cratebuilds);rustcall_extract(CLI) forrust"""blocks,@rust_cratescanning and generic monomorphization.
Julia never parses Rust source itself; it reads the manifest::Manifest
produced here.
Re-exports§
pub use manifest::Manifest;pub use manifest::Mode;pub use manifest::SCHEMA_VERSION;
Modules§
- attrs
- Attribute inspection helpers (
#[julia],#[derive(JuliaStruct)], and the PyO3 entry-point attributes scanned by #275). - cfg
#[cfg(...)]evaluation.- claims
- Every name the code generated for one manifest entry defines (#338).
- codegen
- Wrapper code generation.
- environment
- The generic environment a generated wrapper declares (#482).
- expand
- Inline expansion for
rust"""..."""blocks. - extract
- Manifest extraction.
- include_
paths - Resolve include paths using the environment of the build being scanned. Never consult the extractor process’s environment: its OUT_DIR belongs to neither the target crate nor necessarily the selected feature/profile build.
- manifest
- FFI manifest model.
- model
- Intermediate model of
#[julia]structs and their impl blocks, built from a parsed file and shared by extraction and code generation. - paths
- Resolving the type path an
implheader writes to the struct it names. - public_
routes - External call paths, distinct from canonical definition identities (#303). Inputs are the same cfg-pruned syn items as the PyO3 scan. Predicates are retained for lenient scans; a conditional import must not grant unconditional access to an otherwise unconditional definition.
- pyo3
- Scanning a crate that only carries PyO3 attributes (#275, Phase 1).
- receiver
- The receiver of a
#[julia]method, read from its syntax in one place (#509). - refusal
- Every refusal the
#[julia]codegen makes, decided in one place (#503). - specialize
- AST-level generic instantiation.
- types
- Type-level helpers shared by extraction and code generation.
- wrap
- Generating the wrapper crate of a PyO3 crate (#275, Phase 2).