[vlc-commits] [Git][videolan/vlc][master] 3 commits: modules: Cargo.toml: expose workspace for modules

Alexandre Janniaux (@alexandre-janniaux) gitlab at videolan.org
Thu Jun 27 17:38:53 UTC 2024



Alexandre Janniaux pushed to branch master at VideoLAN / VLC


Commits:
7825cee9 by Alexandre Janniaux at 2024-06-27T17:26:49+00:00
modules: Cargo.toml: expose workspace for modules

The workspace references the core crate from `src/rust/*` and allow
modules to inherit from them. This unify where to finds the crates for
the modules.

- - - - -
e8bb3391 by Alexandre Janniaux at 2024-06-27T17:26:49+00:00
src: Cargo.toml: expose common workspace keys

Expose the version and license keys to every members of the workspace.
The rationale is that every core crates merged into `src/rust/` will
be versioned under the same revision as the core.

- - - - -
163c7868 by Alexandre Janniaux at 2024-06-27T17:26:49+00:00
vlcrs-message: Cargo.toml: use workspace data

Inherit the version and license keys from the workspace so that they are
defined only once.

- - - - -


3 changed files:

- + modules/Cargo.toml
- src/rust/Cargo.toml
- src/rust/vlcrs-messages/Cargo.toml


Changes:

=====================================
modules/Cargo.toml
=====================================
@@ -0,0 +1,6 @@
+[workspace]
+resolver = "2"
+members = []
+
+[workspace.dependencies]
+vlcrs-messages = { path = "../src/rust/vlcrs-messages" }


=====================================
src/rust/Cargo.toml
=====================================
@@ -4,3 +4,7 @@ members = [
     "vlcrs-sys-generator"
 ]
 resolver = "2"
+
+[workspace.package]
+version = "4.0.0"
+license = "LGPL-2.1-or-later"


=====================================
src/rust/vlcrs-messages/Cargo.toml
=====================================
@@ -1,8 +1,8 @@
 [package]
 name = "vlcrs-messages"
-version = "0.0.0"
 edition = "2021"
-license = "LGPL-2.1-or-later"
+version.workspace = true
+license.workspace = true
 
 [dependencies]
 vlcrs-utils = { path = "../vlcrs-utils" }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ffb6cc6933c44cfc475aadfc553d21ca3100ee33...163c786896c5c99a4c2af7dff191473902453d56

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ffb6cc6933c44cfc475aadfc553d21ca3100ee33...163c786896c5c99a4c2af7dff191473902453d56
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list