This repository was archived by the owner on Nov 8, 2023. It is now read-only.
Commit 0ec10ed
committed
Add include_dirs to all libraries
One can link directly to `rust_library` as well.
The current logic is brittle: not all crates explicitly list
crate-types, especially because not all crate types are available on all
platforms: e.g. specifying a crate-type staticlib or cdylib makes it
*impossible* to compile a crate to Wasm. On the other hand, crate
consumers are free to specify whatever crate type they'd like via cargo,
so not explicitly listing crate-types is a decent choice for crates.
So the current logic leaves out crates like `icu_capi`, which have
headers but don't have a `staticlib` crate-type.
Test: m cargo_embargo + crate_tool regenerate icu_capi
Change-Id: Iaf62f6abdcc5cd84090f37b1ddc200c9d64e85001 parent b04c59f commit 0ec10ed
2 files changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 67 | | |
73 | 68 | | |
74 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
1117 | | - | |
| 1117 | + | |
1118 | 1118 | | |
1119 | 1119 | | |
1120 | 1120 | | |
| |||
0 commit comments