Skip to content

Include all major optional features in docs.rs build for complete API visibility #388

Description

@pukeko37

Specific Demand

The kalosm-language crate has several powerful optional features (including scrape for web crawling, openai/anthropic for remote API integrations, and hardware acceleration options), but currently only the remote feature is included in the docs.rs build configuration. This creates a significant discoverability problem where users browsing the documentation cannot see major functionality like Page::crawl, CrawlFeedback, OpenAI/Anthropic integration types, or understand the full scope of available APIs. Documentation tools and MCP servers that rely on docs.rs also cannot retrieve information about these features, making them appear "missing" when they're actually fully implemented.

Implement Suggestion

To improve user experience and API discoverability, I suggest updating the [package.metadata.docs.rs] configuration in kalosm-language/Cargo.toml to include all major features: features = ["remote", "scrape", "openai", "anthropic"] (hardware acceleration features like metal/cublas could be excluded if they cause build issues). This would provide users with complete visibility into the crate's capabilities and align with the common practice of documenting optional features on docs.rs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions