Skip to content

Conversation

baylesj
Copy link

@baylesj baylesj commented Jul 1, 2025

This patch makes it so that the MPl-2.0 license is bundled with
each crate (as is best practice for license files). However, cargo
does NOT currently have a better solution than copying the license
to each crate's folder (see discussion here:
https://github.com/rust-lang/cargo/issues/13328), so this patch
copies the LICENSE file to each crate's folder.

This patch also consolidates a lot of the package metadata into the
root Cargo.toml.

resolves #391

This patch makes it so that the MPl-2.0 license is bundled with
each crate (as is best practice for license files). However, cargo
does NOT currently have a better solution than copying the license
to each crate's folder (see discussion here:
rust-lang/cargo#13328), so this patch
copies the LICENSE file to each crate's folder.

This patch also consolidates a lot of the package metadata into the
root Cargo.toml.
@baylesj baylesj changed the base branch from master to dev-0.6 July 1, 2025 07:04
@baylesj baylesj changed the title Cleanup Cargo.tomls and licenses Cleanup Cargo.tomls and licenses (dev branch) Jul 3, 2025
Copy link
Owner

@pdeljanov pdeljanov left a comment

Choose a reason for hiding this comment

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

I like the change moving the common Cargo.toml metadata to the workspace. Thanks for that. Having a license per-crate also doesn't seem like a major concern to me.

However, this PR must've been cherry-picked from master since there are a lot of changes to the dependencies that would break the build and just don't make sense. Please remove all changes to the dependencies.

default-features = false
features = ["flac"]
symphonia-metadata = { version = "0.5.4", path = "../symphonia-metadata" }
symphonia-utils-xiph = { version = "0.5.4", path = "../symphonia-utils-xiph" }
Copy link
Owner

Choose a reason for hiding this comment

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

Switching from symphonia-common to symphonia-utils-xiph with no code changes.

path = "../symphonia-metadata"
default-features = false
features = ["flac"]
symphonia-metadata = { version = "0.5.4", path = "../symphonia-metadata" }
Copy link
Owner

Choose a reason for hiding this comment

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

We only want to select the required features from the metadata crate.

Comment on lines +33 to +34
arrayvec = "0.7.1"
bitflags = "1.2.1"
Copy link
Owner

Choose a reason for hiding this comment

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

What?

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