plissken-core
Rust
plissken-core: Documentation extraction for Rust-Python hybrid projects
This crate provides the core functionality for parsing Rust and Python source code and extracting documentation into a unified model.
API Structure
The public API is organized into tiers:
- Core API (root): Essential types for typical usage
- Detail API (
detail): Advanced types for fine-grained control - Modules (
config,parser,render, etc.): Full module access
Quick Start
use plissken_core::{Config, RustParser, PythonParser, DocModel};
// Load configurationlet config = Config::from_file("plissken.toml")?;
// Parse source fileslet mut rust_parser = RustParser::new();let rust_module = rust_parser.parse_file("src/lib.rs")?;
// Build documentation modellet model = DocModel::test("my-project") .with_rust_module(rust_module);Re-exports
Section titled “Re-exports”ConfigConfigErrorConfigWarningValidationResultCARGO_MANIFESTDEFAULT_CRATESDEFAULT_DOCS_RS_URLDEFAULT_OUTPUT_FORMATDEFAULT_OUTPUT_PATHDEFAULT_STARLIGHT_OUTPUT_PATHDEFAULT_TEMPLATEPLISSKEN_CONFIGPYPROJECT_MANIFESTTEMPLATE_MDBOOKTEMPLATE_MKDOCS_MATERIALTEMPLATE_STARLIGHTVERSION_SOURCE_CARGOVERSION_SOURCE_PYPROJECTPlisskenErrorResultCrossRefCrossRefKindDocModelProjectMetadataSourceTypePythonModuleRustModuleParsedModule(parser::Module)ParserParserLanguagecreate_parserparser_for_extensionPythonParserRustParserModuleRendererRenderedPageRendererThemeAdapterget_theme_adapterParsedDocstringPythonClassPythonFunctionPythonItemPythonParamPythonVariableRustEnumRustFieldRustFunctionRustImplRustItemRustItemRefRustParamRustStructRustTraitSourceLocationSourceSpanVisibilityDiscoveredModulediscover_python_modulesmerge_modulesCargoManifestInferredConfigPyProjectManifestbuild_cross_refssynthesize_python_apisynthesize_python_from_rustsynthesize_python_modules_from_rustparse_docstringparse_rust_docCrossRefLinkLanguagecrossref_linklink_to_pythonlink_to_rustrender_docstringrender_examplesrender_params_tablerender_python_exposure_detailsrender_raises_tablerender_returnsrender_rust_docstringrender_rust_impl_details
