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

Compilation issues #259

Open
juli1 opened this issue Jul 18, 2024 · 0 comments
Open

Compilation issues #259

juli1 opened this issue Jul 18, 2024 · 0 comments

Comments

@juli1
Copy link

juli1 commented Jul 18, 2024

To use the crate serde-cyclonedx = "0.9.1", I had to use the derive features of the serde crate.

Without putting

serde = { version = "1.0.204", features = ["derive"] }

I had the following error

error: cannot find attribute `serde` in this scope
    --> /Users/julien/git/sbom-generator/target/debug/build/serde-cyclonedx-c37946fed79d8fc8/out/cyclonedx_1_5.rs:2206:3
     |
2206 | #[serde(rename = "step")]
     |   ^^^^^
     |
     = note: `serde` is in scope, but it is a crate, not an attribute

One solution would be to at least include these instructions in the documentation.

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

1 participant