Skip to content

Architecture: remove or feature-gate __internal module #472

@avifenesh

Description

@avifenesh

Audit Finding (Architecture, Medium)

Location: crates/agnix-core/src/lib.rs:116-127

The parsers module is pub(crate) but re-exported through #[doc(hidden)] pub mod __internal. This leaks internal types into the public API and creates semver obligations.

Fix: Feature-gate behind "testing" feature flag, or move fuzz/bench targets into the same crate. Document that __internal is exempt from semver guarantees.

Found by /audit-project

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions