Commit 81cd611
authored
fix(api): make proto/ vendor-able (console-rs#128)
I work with a large monorepo that `cargo vendor'`s all third-party code.
We use tokio quite a bit, and want to experiment with `tokio/console`
When vendoring `console-api` the `../proto` directory is lost, and the
crate is unbuildable. I understand that keeping `proto/` as a top-level
directory is probably desirable, so this change symlinks that directory
into that sub-crate itself.
My understanding is that this change may also be required once `console`
is put on crates.io?
`cargo vendor` before this change:
```
Cargo.toml build.rs src
```
after:
```
Cargo.toml
build.rs
proto
src
```
This is basically copying what https://github.com/dtolnay/cxx does with
symlinks1 parent 95a6dab commit 81cd611
2 files changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments