Skip to content

Update musicbrainz API crate - #210

Open
Siilwyn wants to merge 2 commits into
Holzhaus:mainfrom
Siilwyn:update-musicbrainz
Open

Siilwyn wants to merge 2 commits into
Holzhaus:mainfrom
Siilwyn:update-musicbrainz

Conversation

@Siilwyn

@Siilwyn Siilwyn commented Sep 10, 2026 •

Copy link
Copy Markdown

👋 before adding functionality for #190 I thought it'd be good to get a bit more familiar with the codebase.
I noticed musicbrainz_rs_nova is used which seems to be an unmaintained fork while the upstream crate is maintained again. So I basically switched to the upstream crate with the rustls so there is no longer an implicit SSL system dependency.

I'm quite new to Rust so I'm not sure about all changes.
Besides that I found the the upstream crate outputs the year as a string and a new id is expected so I updated the JSON. (00000000-0000-0000-0000-000000000000)
Let me know what you think.

Comment thread src/error.rs
Comment on lines +60 to +65
impl From<musicbrainz_rs::ApiEndpointError> for ErrorType {
fn from(err: musicbrainz_rs::ApiEndpointError) -> Self {
Self::Request(Box::new(err))
}
}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Clippy complained about big errors, I couldn't find a better solution

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.

1 participant