mirror of
https://github.com/horizon-rust/horizon-mixins.git
synced 2026-12-03 19:34:02 +07:00
[GH-ISSUE #12] Bundle crates #5
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-mixins#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @reservedbytes on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon-mixins/issues/12
Found while testing bundle crates against
fixtures/nativeand horizon-rust/horizon#3964, still there onmainA mod's crates can't use each other:
boost-util = { path = "../util" }between two[[crate]]s of the same bundle is'path' is not allowedI think bigger mods will want to split their code, so a path to another crate of the same mod could be allowed
[lib] nameisn't checked...name = "serde_json"in a crate calledboost-engineplans fine, then the build fails withcannot find module or crate boost_engineA
[[bin]]that claimssrc/main.rsunder another name still makes the package name count as a bin, sobin = "boost-engine"passesE_POST_BUILDand Cargo only refuses it after the whole game compiledA Windows-style path (
path = "mods\\engine",helper = "hooks\\tick.rs") fails withE_IO: No such file or directory, without saying which pathI think it works on Windows (
\is a separator there), so the same bundle would only break for others. I would refuse\with a "use/" message