-
-
Notifications
You must be signed in to change notification settings - Fork 90
Gir submodules alternative #107
Comments
A possible alternative. Use an ignored
You could either let |
Other alternative: optionally make |
Something like this can be achieved with cargo config.
Put |
Hard making all |
You'll still have to rebuild GIR = gir/target/bin/gir
# ...
$(GIR) : gir/Cargo.toml gir/Cargo.lock gir/build.rs $(shell find gir/src -name '*.rs')
# This line can be removed once we have `cargo install --force`
cargo uninstall --root gir/target gir 2&>1 > /dev/null || true
cargo install --root gir/target --path gir |
I not understand how cargo install be better. PS. We need full rebuild |
I'll probably add a PR to make the install idea easier to understand. As to rustc upgrades the benefit of static linking by default is |
Yes, it static linked, so when we try build |
Last only true if not using |
We don't have them per module any more as everything's merged into one. |
There is a significant drawback to having 'gir' and 'gir-files' submodules in each repo: wasted space and build time when working with several repos at once. It is desirable to find another solution which would retain ease of use (edit
Gir.toml
,make gir
) and similar control over 'gir' and 'gir-files' revisions used to regenerate code.The text was updated successfully, but these errors were encountered: