build(ariadne): keep vendored crate metadata stable

This commit is contained in:
2026-09-05 22:02:03 -04:00
parent 35d93214f5
commit a3c9be23c4
2 changed files with 14 additions and 38 deletions

View File

@@ -106,5 +106,6 @@
`bazel test` exits non-zero when it finds no test targets. `bazel test` exits non-zero when it finds no test targets.
- In Bazel `BUILD` files, depend on vendored Rust crates through the public aliases under - In Bazel `BUILD` files, depend on vendored Rust crates through the public aliases under
`//third_party/crates`, for example `//third_party/crates:serde`. `//third_party/crates`, for example `//third_party/crates:serde`.
Use crate universe only to vendor crates, not as a dependency macro API for first-party targets.
- Ariadne extraction must preserve the game-root season prefix for archived source. - Ariadne extraction must preserve the game-root season prefix for archived source.
Different game installs can contain compiled scripts with the same internal path. Different game installs can contain compiled scripts with the same internal path.

View File

@@ -310,15 +310,12 @@ def aliases(
############################################################################### ###############################################################################
_CRATE_EDITIONS = { _CRATE_EDITIONS = {
"src/ariadne/bin": "2024", "src/ariadne": "2024",
"src/ariadne/core": "2024",
"src/machoke": "2024", "src/machoke": "2024",
} }
_NORMAL_DEPENDENCIES = { _NORMAL_DEPENDENCIES = {
"src/ariadne/bin": { "src/ariadne": {
},
"src/ariadne/core": {
_COMMON_CONDITION: { _COMMON_CONDITION: {
"serde": Label("//third_party/crates/serde-1.0.229:serde"), "serde": Label("//third_party/crates/serde-1.0.229:serde"),
"serde_json": Label("//third_party/crates/serde_json-1.0.151:serde_json"), "serde_json": Label("//third_party/crates/serde_json-1.0.151:serde_json"),
@@ -329,9 +326,7 @@ _NORMAL_DEPENDENCIES = {
} }
_NORMAL_ALIASES = { _NORMAL_ALIASES = {
"src/ariadne/bin": { "src/ariadne": {
},
"src/ariadne/core": {
_COMMON_CONDITION: { _COMMON_CONDITION: {
}, },
}, },
@@ -340,90 +335,70 @@ _NORMAL_ALIASES = {
} }
_NORMAL_DEV_DEPENDENCIES = { _NORMAL_DEV_DEPENDENCIES = {
"src/ariadne/bin": { "src/ariadne": {
},
"src/ariadne/core": {
}, },
"src/machoke": { "src/machoke": {
}, },
} }
_NORMAL_DEV_ALIASES = { _NORMAL_DEV_ALIASES = {
"src/ariadne/bin": { "src/ariadne": {
},
"src/ariadne/core": {
}, },
"src/machoke": { "src/machoke": {
}, },
} }
_PROC_MACRO_DEPENDENCIES = { _PROC_MACRO_DEPENDENCIES = {
"src/ariadne/bin": { "src/ariadne": {
},
"src/ariadne/core": {
}, },
"src/machoke": { "src/machoke": {
}, },
} }
_PROC_MACRO_ALIASES = { _PROC_MACRO_ALIASES = {
"src/ariadne/bin": { "src/ariadne": {
},
"src/ariadne/core": {
}, },
"src/machoke": { "src/machoke": {
}, },
} }
_PROC_MACRO_DEV_DEPENDENCIES = { _PROC_MACRO_DEV_DEPENDENCIES = {
"src/ariadne/bin": { "src/ariadne": {
},
"src/ariadne/core": {
}, },
"src/machoke": { "src/machoke": {
}, },
} }
_PROC_MACRO_DEV_ALIASES = { _PROC_MACRO_DEV_ALIASES = {
"src/ariadne/bin": { "src/ariadne": {
},
"src/ariadne/core": {
}, },
"src/machoke": { "src/machoke": {
}, },
} }
_BUILD_DEPENDENCIES = { _BUILD_DEPENDENCIES = {
"src/ariadne/bin": { "src/ariadne": {
},
"src/ariadne/core": {
}, },
"src/machoke": { "src/machoke": {
}, },
} }
_BUILD_ALIASES = { _BUILD_ALIASES = {
"src/ariadne/bin": { "src/ariadne": {
},
"src/ariadne/core": {
}, },
"src/machoke": { "src/machoke": {
}, },
} }
_BUILD_PROC_MACRO_DEPENDENCIES = { _BUILD_PROC_MACRO_DEPENDENCIES = {
"src/ariadne/bin": { "src/ariadne": {
},
"src/ariadne/core": {
}, },
"src/machoke": { "src/machoke": {
}, },
} }
_BUILD_PROC_MACRO_ALIASES = { _BUILD_PROC_MACRO_ALIASES = {
"src/ariadne/bin": { "src/ariadne": {
},
"src/ariadne/core": {
}, },
"src/machoke": { "src/machoke": {
}, },