forge
Explore
Log in

Don't you dare go Hollow

Every shim manifest stands on its own

Browse files at this commit

a132a9d4cd55b5da3ed82f22126104cb877b0c38Ahmet Kaan GümüşParent: 30d372e
  • build
    • every shim manifest stands on its own
Show full message
build(shims): every shim manifest stands on its own

Shims are built by the consumer as path dependencies, from outside this
workspace. Any inherited field (`edition.workspace`, and the family's dep
table) makes that build read this workspace's root manifest, so a root that
does not parse -- mid-edit, mid-rename, a member being created -- breaks the
consumer's build for a reason that has nothing to do with the shim.

Measured, not assumed: with an unparseable root, a shim carrying
`edition.workspace = true` fails with "invalid potential workspace manifest"
and the same shim with literal fields builds. A member whose manifest has no
source file does not break it either way -- cargo loads only the members it
needs.

So every shim now spells out edition, license, authors and its `ec-*`
dependencies as relative paths; `flacenc` already did, and the rest match it.

Check: `cargo check --manifest-path shims/<name>/Cargo.toml` for all twelve.
shims/flacenc/Cargo.tomlmodified+3 -3
@@ -2,9 +2,9 @@
2 name = "flacenc"2 name = "flacenc"
3 description = "Compatibility shim: the flacenc 0.5.1 surface edith consumes, served by ec-flac."3 description = "Compatibility shim: the flacenc 0.5.1 surface edith consumes, served by ec-flac."
4 version = "0.5.1"4 version = "0.5.1"
5-edition.workspace = true5+edition = "2024"
6-license.workspace = true6+license = "MIT OR Apache-2.0"
7-authors.workspace = true7+authors = ["Ahmet Kaan Gümüş"]
8 publish = false8 publish = false
9 9
10 [dependencies]10 [dependencies]
shims/hound/Cargo.tomlmodified+4 -4
@@ -2,9 +2,9 @@
2 name = "hound"2 name = "hound"
3 description = "Compatibility shim: the hound 3.5.1 WAV-writing surface, implemented over ec-riff."3 description = "Compatibility shim: the hound 3.5.1 WAV-writing surface, implemented over ec-riff."
4 version = "3.5.1"4 version = "3.5.1"
5-edition.workspace = true5+edition = "2024"
6-license.workspace = true6+license = "MIT OR Apache-2.0"
7-authors.workspace = true7+authors = ["Ahmet Kaan Gümüş"]
8 8
9 [dependencies]9 [dependencies]
10-ec-riff.workspace = true10+ec-riff = { path = "../../crates/ec-riff", version = "0.1.0" }
shims/miniz_oxide/Cargo.tomlmodified+3 -3
@@ -2,9 +2,9 @@
2 name = "miniz_oxide"2 name = "miniz_oxide"
3 description = "Compatibility shim: the miniz_oxide surface edith consumes, served by ec-inflate."3 description = "Compatibility shim: the miniz_oxide surface edith consumes, served by ec-inflate."
4 version = "0.8.9"4 version = "0.8.9"
5-edition.workspace = true5+edition = "2024"
6-license.workspace = true6+license = "MIT OR Apache-2.0"
7-authors.workspace = true7+authors = ["Ahmet Kaan Gümüş"]
8 publish = false8 publish = false
9 9
10 [dependencies]10 [dependencies]
shims/oxideav-ac3/Cargo.tomladded+13 -0
@@ -0,0 +1,13 @@
1+[package]
2+name = "oxideav-ac3"
3+description = "Compatibility shim: the oxideav-ac3 surface edith consumes, over ec-ac3."
4+version = "0.0.10"
5+edition = "2024"
6+license = "MIT OR Apache-2.0"
7+authors = ["Ahmet Kaan Gümüş"]
8+publish = false
9+
10+[dependencies]
11+ec-ac3 = { path = "../../crates/ec-ac3", version = "0.1.0" }
12+ec-core = { path = "../../crates/ec-core", version = "0.1.0" }
13+oxideav-core = { path = "../oxideav-core", version = "0.1.34" }
shims/oxideav-ass/Cargo.tomlmodified+3 -3
@@ -2,9 +2,9 @@
2 name = "oxideav-ass"2 name = "oxideav-ass"
3 description = "Compatibility shim: the oxideav-ass surface edith consumes, over ec-ass."3 description = "Compatibility shim: the oxideav-ass surface edith consumes, over ec-ass."
4 version = "0.0.9"4 version = "0.0.9"
5-edition.workspace = true5+edition = "2024"
6-license.workspace = true6+license = "MIT OR Apache-2.0"
7-authors.workspace = true7+authors = ["Ahmet Kaan Gümüş"]
8 publish = false8 publish = false
9 9
10 [dependencies]10 [dependencies]
shims/oxideav-core/Cargo.tomlmodified+4 -4
@@ -2,10 +2,10 @@
2 name = "oxideav-core"2 name = "oxideav-core"
3 description = "Compatibility shim: the oxideav-core surface edith consumes, over ec-core."3 description = "Compatibility shim: the oxideav-core surface edith consumes, over ec-core."
4 version = "0.1.34"4 version = "0.1.34"
5-edition.workspace = true5+edition = "2024"
6-license.workspace = true6+license = "MIT OR Apache-2.0"
7-authors.workspace = true7+authors = ["Ahmet Kaan Gümüş"]
8 publish = false8 publish = false
9 9
10 [dependencies]10 [dependencies]
11-ec-core.workspace = true11+ec-core = { path = "../../crates/ec-core", version = "0.1.0" }
shims/oxideav-ogg/Cargo.tomlmodified+3 -3
@@ -2,9 +2,9 @@
2 name = "oxideav-ogg"2 name = "oxideav-ogg"
3 description = "Compatibility shim: the oxideav-ogg mux surface edith consumes, over ec-ogg."3 description = "Compatibility shim: the oxideav-ogg mux surface edith consumes, over ec-ogg."
4 version = "0.1.8"4 version = "0.1.8"
5-edition.workspace = true5+edition = "2024"
6-license.workspace = true6+license = "MIT OR Apache-2.0"
7-authors.workspace = true7+authors = ["Ahmet Kaan Gümüş"]
8 publish = false8 publish = false
9 9
10 [dependencies]10 [dependencies]
shims/oxideav-sub-image/Cargo.tomlmodified+3 -3
@@ -2,9 +2,9 @@
2 name = "oxideav-sub-image"2 name = "oxideav-sub-image"
3 description = "Compatibility shim: the oxideav-sub-image PGS surface edith consumes, over ec-pgs."3 description = "Compatibility shim: the oxideav-sub-image PGS surface edith consumes, over ec-pgs."
4 version = "0.0.7"4 version = "0.0.7"
5-edition.workspace = true5+edition = "2024"
6-license.workspace = true6+license = "MIT OR Apache-2.0"
7-authors.workspace = true7+authors = ["Ahmet Kaan Gümüş"]
8 publish = false8 publish = false
9 9
10 [dependencies]10 [dependencies]
shims/oxideav-subtitle/Cargo.tomlmodified+3 -3
@@ -2,9 +2,9 @@
2 name = "oxideav-subtitle"2 name = "oxideav-subtitle"
3 description = "Compatibility shim: the oxideav-subtitle surface edith consumes, over ec-subs."3 description = "Compatibility shim: the oxideav-subtitle surface edith consumes, over ec-subs."
4 version = "0.1.2"4 version = "0.1.2"
5-edition.workspace = true5+edition = "2024"
6-license.workspace = true6+license = "MIT OR Apache-2.0"
7-authors.workspace = true7+authors = ["Ahmet Kaan Gümüş"]
8 publish = false8 publish = false
9 9
10 [dependencies]10 [dependencies]
shims/rusty_aac/Cargo.tomladded+11 -0
@@ -0,0 +1,11 @@
1+[package]
2+name = "rusty_aac"
3+description = "Compatibility shim: the rusty_aac 0.5 surface edith consumes, served by ec-aac."
4+version = "0.5.0"
5+edition = "2024"
6+license = "MIT OR Apache-2.0"
7+authors = ["Ahmet Kaan Gümüş"]
8+publish = false
9+
10+[dependencies]
11+ec-aac = { path = "../../crates/ec-aac", version = "0.1.0" }
shims/rusty_mp3/Cargo.tomlmodified+5 -5
@@ -2,10 +2,10 @@
2 name = "rusty_mp3"2 name = "rusty_mp3"
3 description = "Compatibility shim: the rusty_mp3 0.6.1 surface, implemented over ec-mp3."3 description = "Compatibility shim: the rusty_mp3 0.6.1 surface, implemented over ec-mp3."
4 version = "0.6.1"4 version = "0.6.1"
5-edition.workspace = true5+edition = "2024"
6-license.workspace = true6+license = "MIT OR Apache-2.0"
7-authors.workspace = true7+authors = ["Ahmet Kaan Gümüş"]
8 8
9 [dependencies]9 [dependencies]
10-ec-mp3.workspace = true10+ec-mp3 = { path = "../../crates/ec-mp3", version = "0.1.0" }
11-ec-core.workspace = true11+ec-core = { path = "../../crates/ec-core", version = "0.1.0" }
shims/rusty_vorbis/Cargo.tomlmodified+3 -3
@@ -2,9 +2,9 @@
2 name = "rusty_vorbis"2 name = "rusty_vorbis"
3 description = "Compatibility shim: the rusty_vorbis 0.1.1 surface edith consumes, served by ec-vorbis."3 description = "Compatibility shim: the rusty_vorbis 0.1.1 surface edith consumes, served by ec-vorbis."
4 version = "0.1.1"4 version = "0.1.1"
5-edition.workspace = true5+edition = "2024"
6-license.workspace = true6+license = "MIT OR Apache-2.0"
7-authors.workspace = true7+authors = ["Ahmet Kaan Gümüş"]
8 publish = false8 publish = false
9 9
10 [dependencies]10 [dependencies]