Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#[static_xml(text)] causes compilation error #12

Open
felixse opened this issue Dec 11, 2024 · 1 comment
Open

#[static_xml(text)] causes compilation error #12

felixse opened this issue Dec 11, 2024 · 1 comment

Comments

@felixse
Copy link

felixse commented Dec 11, 2024

Hi,

I'm getting the following cargo build error when trying to compile a struct that contains the #[static_xml(text)] macro:

error: could not compile `static-xml-test` (bin "static-xml-test")

Caused by:
  process didn't exit successfully: `***\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name static_xml_test --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=106 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values())" -C metadata=aed0c21a9601d9cf --out-dir ***\target\debug\deps -C incremental=***\target\debug\incremental -L dependency=***\target\debug\deps --extern static_xml=***\target\debug\deps\libstatic_xml-a4bce713d0e519f2.rlib --extern static_xml_derive=***\target\debug\deps\static_xml_derive-12e4a8e2b63abfcf.dll` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)

the struct looks like this:

#[derive(Default, PartialEq, Debug, Serialize, Deserialize)]
#[static_xml(
    prefix = "wsnt",
    namespace = "wsnt: http://docs.oasis-open.org/wsn/b-2"
)]
pub struct TopicExpressionType {
    #[static_xml(attribute, rename = "Dialect")]
    pub dialect: String,

    #[static_xml(text)]
    pub inner_text: String,
}
@scottlamb
Copy link
Owner

As of 3e4a91a the error will be more clear: this isn't implemented yet. I haven't been able to find the time to give this crate the completeness and polish I'd like. If you're interested in contributing, it'd be most welcome.

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

No branches or pull requests

2 participants