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 @@
22 name = "flacenc"
33 description = "Compatibility shim: the flacenc 0.5.1 surface edith consumes, served by ec-flac."
44 version = "0.5.1"
5-edition.workspace = true
6-license.workspace = true
7-authors.workspace = true
5+edition = "2024"
6+license = "MIT OR Apache-2.0"
7+authors = ["Ahmet Kaan Gümüş"]
88 publish = false
99
1010 [dependencies]
shims/hound/Cargo.tomlmodified+4 -4
@@ -2,9 +2,9 @@
22 name = "hound"
33 description = "Compatibility shim: the hound 3.5.1 WAV-writing surface, implemented over ec-riff."
44 version = "3.5.1"
5-edition.workspace = true
6-license.workspace = true
7-authors.workspace = true
5+edition = "2024"
6+license = "MIT OR Apache-2.0"
7+authors = ["Ahmet Kaan Gümüş"]
88
99 [dependencies]
10-ec-riff.workspace = true
10+ec-riff = { path = "../../crates/ec-riff", version = "0.1.0" }
shims/miniz_oxide/Cargo.tomlmodified+3 -3
@@ -2,9 +2,9 @@
22 name = "miniz_oxide"
33 description = "Compatibility shim: the miniz_oxide surface edith consumes, served by ec-inflate."
44 version = "0.8.9"
5-edition.workspace = true
6-license.workspace = true
7-authors.workspace = true
5+edition = "2024"
6+license = "MIT OR Apache-2.0"
7+authors = ["Ahmet Kaan Gümüş"]
88 publish = false
99
1010 [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 @@
22 name = "oxideav-ass"
33 description = "Compatibility shim: the oxideav-ass surface edith consumes, over ec-ass."
44 version = "0.0.9"
5-edition.workspace = true
6-license.workspace = true
7-authors.workspace = true
5+edition = "2024"
6+license = "MIT OR Apache-2.0"
7+authors = ["Ahmet Kaan Gümüş"]
88 publish = false
99
1010 [dependencies]
shims/oxideav-core/Cargo.tomlmodified+4 -4
@@ -2,10 +2,10 @@
22 name = "oxideav-core"
33 description = "Compatibility shim: the oxideav-core surface edith consumes, over ec-core."
44 version = "0.1.34"
5-edition.workspace = true
6-license.workspace = true
7-authors.workspace = true
5+edition = "2024"
6+license = "MIT OR Apache-2.0"
7+authors = ["Ahmet Kaan Gümüş"]
88 publish = false
99
1010 [dependencies]
11-ec-core.workspace = true
11+ec-core = { path = "../../crates/ec-core", version = "0.1.0" }
shims/oxideav-ogg/Cargo.tomlmodified+3 -3
@@ -2,9 +2,9 @@
22 name = "oxideav-ogg"
33 description = "Compatibility shim: the oxideav-ogg mux surface edith consumes, over ec-ogg."
44 version = "0.1.8"
5-edition.workspace = true
6-license.workspace = true
7-authors.workspace = true
5+edition = "2024"
6+license = "MIT OR Apache-2.0"
7+authors = ["Ahmet Kaan Gümüş"]
88 publish = false
99
1010 [dependencies]
shims/oxideav-sub-image/Cargo.tomlmodified+3 -3
@@ -2,9 +2,9 @@
22 name = "oxideav-sub-image"
33 description = "Compatibility shim: the oxideav-sub-image PGS surface edith consumes, over ec-pgs."
44 version = "0.0.7"
5-edition.workspace = true
6-license.workspace = true
7-authors.workspace = true
5+edition = "2024"
6+license = "MIT OR Apache-2.0"
7+authors = ["Ahmet Kaan Gümüş"]
88 publish = false
99
1010 [dependencies]
shims/oxideav-subtitle/Cargo.tomlmodified+3 -3
@@ -2,9 +2,9 @@
22 name = "oxideav-subtitle"
33 description = "Compatibility shim: the oxideav-subtitle surface edith consumes, over ec-subs."
44 version = "0.1.2"
5-edition.workspace = true
6-license.workspace = true
7-authors.workspace = true
5+edition = "2024"
6+license = "MIT OR Apache-2.0"
7+authors = ["Ahmet Kaan Gümüş"]
88 publish = false
99
1010 [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 @@
22 name = "rusty_mp3"
33 description = "Compatibility shim: the rusty_mp3 0.6.1 surface, implemented over ec-mp3."
44 version = "0.6.1"
5-edition.workspace = true
6-license.workspace = true
7-authors.workspace = true
5+edition = "2024"
6+license = "MIT OR Apache-2.0"
7+authors = ["Ahmet Kaan Gümüş"]
88
99 [dependencies]
10-ec-mp3.workspace = true
11-ec-core.workspace = true
10+ec-mp3 = { path = "../../crates/ec-mp3", version = "0.1.0" }
11+ec-core = { path = "../../crates/ec-core", version = "0.1.0" }
shims/rusty_vorbis/Cargo.tomlmodified+3 -3
@@ -2,9 +2,9 @@
22 name = "rusty_vorbis"
33 description = "Compatibility shim: the rusty_vorbis 0.1.1 surface edith consumes, served by ec-vorbis."
44 version = "0.1.1"
5-edition.workspace = true
6-license.workspace = true
7-authors.workspace = true
5+edition = "2024"
6+license = "MIT OR Apache-2.0"
7+authors = ["Ahmet Kaan Gümüş"]
88 publish = false
99
1010 [dependencies]