Kirill Bulatov
bce4233d3a
Rework Cargo.toml dependencies ( #3322 )
...
* Use workspace variables from cargo, coming with rustc
[1.64](https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1640-2022-09-22 )
See
https://doc.rust-lang.org/nightly/cargo/reference/workspaces.html#the-package-table
and
https://doc.rust-lang.org/nightly/cargo/reference/workspaces.html#the-dependencies-table
sections.
Now, all dependencies in all non-root `Cargo.toml` files are defined as
```
clap.workspace = true
```
sometimes, when extra features are needed, as
```
bytes = {workspace = true, features = ['serde'] }
```
With the actual declarations (with shared features and version
numbers/file paths/etc.) in the root Cargo.toml.
Features are additive:
https://doc.rust-lang.org/nightly/cargo/reference/specifying-dependencies.html#inheriting-a-dependency-from-a-workspace
* Uses the mechanism above to set common, 2021, edition and license across the
workspace
* Mechanically bumps a few dependencies
* Updates hakari format, as it suggested:
```
work/neon/neon kb/cargo-templated ❯ cargo hakari generate
info: no changes detected
info: new hakari format version available: 3 (current: 2)
(add or update `dep-format-version = "3"` in hakari.toml, then run `cargo hakari generate && cargo hakari manage-deps`)
```
2023-01-13 18:13:34 +02:00
Vadim Kharitonov
0b428f7c41
Enable licenses check for 3rd-parties
2023-01-03 15:11:50 +01:00
bojanserafimov
d7eeb73f6f
Impl serialize for pagestream FeMessage ( #2741 )
2022-11-02 23:44:07 -04:00
bojanserafimov
0c54eb65fb
Move pagestream api to libs/pageserver_api ( #2698 )
2022-10-26 17:32:31 -04:00
Kirill Bulatov
f03b7c3458
Bump regular dependencies ( #2618 )
...
* etcd-client is not updated, since we plan to replace it with another client and the new version errors with some missing prost library error
* clap had released another major update that requires changing every CLI declaration again, deserves a separate PR
2022-10-15 01:55:31 +03:00
sharnoff
580584c8fc
Remove control_plane deps on pageserver/safekeeper ( #2513 )
...
Creates new `pageserver_api` and `safekeeper_api` crates to serve as the
shared dependencies. Should reduce both recompile times and cold compile
times.
Decreases the size of the optimized `neon_local` binary: 380M -> 179M.
No significant changes for anything else (mostly as expected).
2022-10-04 11:14:45 -07:00