Skip to content

Allow building xsd-parser-types with xml but without quick-xml#280

Open
RoastVeg wants to merge 1 commit into
Bergmann89:masterfrom
RoastVeg:fix/types_xml_only
Open

Allow building xsd-parser-types with xml but without quick-xml#280
RoastVeg wants to merge 1 commit into
Bergmann89:masterfrom
RoastVeg:fix/types_xml_only

Conversation

@RoastVeg

Copy link
Copy Markdown

No description provided.

@Bergmann89 Bergmann89 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @RoastVeg, thanks for your contribution. Looks good to me, just a few formatting remarks. I also started the CI pipeline please check if it passes, then we can merge this.

Comment thread xsd-parser-types/src/xml/attributes.rs Outdated
events::attributes::Attribute,
name::QName,
};
#[cfg(not(feature = "quick-xml"))]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this after the using directives block (right before Attribute).

#[cfg(feature = "quick-xml")]
use quick_xml::events::Event;

#[cfg(feature = "quick-xml")]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please move all conditional using directives to it's own block? Like:

use std::std::FromStr;

use other_crate::SomeType;

#[cfg(feature = "quick-xml")]
use quick_xml::events::Event;

#[cfg(feature = "quick-xml")]
use crate::quick_xml::{DeserializeBytes, SerializeBytes};

@RoastVeg
RoastVeg force-pushed the fix/types_xml_only branch from c3c81f6 to 04449e0 Compare July 16, 2026 09:53
@RoastVeg
RoastVeg force-pushed the fix/types_xml_only branch from 04449e0 to b8ca6af Compare July 16, 2026 09:53
@RoastVeg
RoastVeg requested a review from Bergmann89 July 16, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants